cmd/cli: support nocgo version for upgrade command

linux/amd64 have the nocgo binary to support system where standard libc
missing.

If the current binary is a nocgo version, "ctrld upgrade" command must
honor the nocgo setting and download the right binary.
This commit is contained in:
Cuong Manh Le
2025-02-13 22:15:27 +07:00
committed by Cuong Manh Le
parent 8ccaeeab60
commit dc433f8dc9
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
//go:build !cgo
package cli
const cgoEnabled = false