mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
fix(terraform): remove incorrect arch detection
This commit is contained in:
+5
-13
@@ -1,15 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
let convert = {
|
||||
freebsd: 'freebsd',
|
||||
macos: 'darwin',
|
||||
linux: 'linux',
|
||||
windows: 'windows',
|
||||
amd64: 'amd64',
|
||||
arm: 'arm64',
|
||||
386: 'x86',
|
||||
};
|
||||
|
||||
function getAllReleases(request) {
|
||||
return request({
|
||||
url: 'https://releases.hashicorp.com/terraform/index.json',
|
||||
@@ -26,9 +16,11 @@ function getAllReleases(request) {
|
||||
let r = {
|
||||
version: build.version,
|
||||
download: build.url,
|
||||
os: convert[build.os],
|
||||
arch: convert[build.arch],
|
||||
channel: 'stable', // No other channels
|
||||
// These are generic enough for the autodetect,
|
||||
// and the per-file logic has proven to get outdated sooner
|
||||
//os: convert[build.os],
|
||||
//arch: convert[build.arch],
|
||||
//channel: 'stable|-rc|-beta|-alpha',
|
||||
};
|
||||
all.releases.push(r);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user