aarch64 fixes
This commit is contained in:
parent
50df5197d4
commit
97b58c722b
5 changed files with 20 additions and 19 deletions
|
|
@ -1,14 +0,0 @@
|
|||
package constants
|
||||
|
||||
import "runtime"
|
||||
|
||||
func GetUnixWorkArch() string {
|
||||
arch := "x86_64"
|
||||
if runtime.GOOS == "arm64" {
|
||||
arch = "arm64"
|
||||
}
|
||||
|
||||
// CPU architectures other than amd64 and arm64 are not yet natively supported.
|
||||
// Running on a non-officially-supported arch will result in use of x86_64 VM.
|
||||
return arch
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ var alpineBaseImageHash []byte
|
|||
func init() {
|
||||
baseAlpineArch = "x86_64"
|
||||
alpineBaseImageHash = utils.MustDecodeHex("925f6bc1039a0abcd0548d2c3054d54dce31cfa03c7eeba22d10d85dc5817c98")
|
||||
if runtime.GOOS == "arm64" {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
baseAlpineArch = "aarch64"
|
||||
alpineBaseImageHash = utils.MustDecodeHex("c94593729e4577650d9e73ada28e3cbe56964ab2a27240364f8616e920ed6d4e")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue