Closed mark-kubacki closed 2 years ago
Tested for ARM on Scaleway.
@wmark Looks like a small conflict was introduced between this branch and master. Once that's resolved I feel comfortable merging this in.
PR has been abandoned. Please feel free to re-open the PR with the requested changes.
HOSTTYPE (and OSTYPE, but that's superseded by OSD_FAMILY) is a built-in variable we use when available, which needs some translation to Go's idioms to cover more and popular architectures.
Consequently, to tackle the case of a cache getting restored from the wrong arch, check whether "go version" runs at all.
Further, the system might use 'go' (the binary) from a different directory than we expected prior to the change, rendering any updates and version checks ineffectual. Therefore it's less error-prone to delete it without any prior checks, and to establish a different order in PATH.