Removed hard coded amd_64

This commit is contained in:
mitch 2022-03-09 20:09:31 -05:00
parent 9d34e7f6f5
commit f355b83fe5
15 changed files with 112 additions and 1 deletions

8
darwin_amd64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build darwin && amd64
// +build darwin,amd64
package versionedTerraform
const (
fileSuffix = "_darwin_amd64.zip"
)

8
darwin_arm_64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build darwin && arm64
// +build darwin,arm64
package versionedTerraform
const (
fileSuffix = "_darwin_arm64.zip"
)

8
freebsd_386.go Normal file
View File

@ -0,0 +1,8 @@
//go:build freebsd && 386
// +build freebsd,386
package versionedTerraform
const (
fileSuffix = "_freebsd_386.zip"
)

8
freebsd_amd_64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build freebsd && amd64
// +build freebsd,amd64
package versionedTerraform
const (
fileSuffix = "_freebsd_amd64.zip"
)

8
freebsd_arm.go Normal file
View File

@ -0,0 +1,8 @@
//go:build freebsd && arm
// +build freebsd,arm
package versionedTerraform
const (
fileSuffix = "_freebsd_arm.zip"
)

8
linux_386.go Normal file
View File

@ -0,0 +1,8 @@
//go:build linux && 386
// +build linux,386
package versionedTerraform
const (
fileSuffix = "_linux_386.zip"
)

8
linux_amd_64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build linux && amd64
// +build linux,amd64
package versionedTerraform
const (
fileSuffix = "_linux_amd64.zip"
)

8
linux_arm.go Normal file
View File

@ -0,0 +1,8 @@
//go:build linux && arm
// +build linux,arm
package versionedTerraform
const (
fileSuffix = "_linux_arm.zip"
)

8
linux_arm64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build linux && arm64
// +build linux,arm64
package versionedTerraform
const (
fileSuffix = "_linux_arm64.zip"
)

8
openbsd_386.go Normal file
View File

@ -0,0 +1,8 @@
//go:build openbsd && 386
// +build openbsd,386
package versionedTerraform
const (
fileSuffix = "_openbsd_386.zip"
)

8
openbsd_amd64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build openbsd && amd64
// +build openbsd,amd64
package versionedTerraform
const (
fileSuffix = "_openbsd_amd64.zip"
)

8
solaris_amd64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build solaris && amd64
// +build solaris,amd64
package versionedTerraform
const (
fileSuffix = "_solaris_amd64.zip"
)

View File

@ -30,7 +30,6 @@ type Version struct {
const ( const (
hashicorpUrl = "https://releases.hashicorp.com/terraform/" hashicorpUrl = "https://releases.hashicorp.com/terraform/"
terraformPrefix = "terraform_" terraformPrefix = "terraform_"
fileSuffix = "_linux_amd64.zip"
versionedTerraformFolder = "/.versionedTerraform" versionedTerraformFolder = "/.versionedTerraform"
) )

8
windows_386.go Normal file
View File

@ -0,0 +1,8 @@
//go:build windows && 386
// +build windows,386
package versionedTerraform
const (
fileSuffix = "_windows_386.zip"
)

8
windows_amd64.go Normal file
View File

@ -0,0 +1,8 @@
//go:build windows && amd64
// +build windows,amd64
package versionedTerraform
const (
fileSuffix = "_windows_amd64.zip"
)