You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried downgrading to Go 1.17.x as recommended here: microsoft/azurelinux#3273 but that didn't work because then make shows an error saying it requires 1.18
# make
[Build] /opt/git/btrfscue/bin/btrfscue
# blichmann.eu/code/btrfscue/cmd/btrfscue/app/util
cmd/btrfscue/app/util/cliutil.go:40:32: undefined: any
cmd/btrfscue/app/util/cliutil.go:46:33: undefined: any
cmd/btrfscue/app/util/cliutil.go:56:35: undefined: any
note: module requires Go 1.18
# github.com/rivo/uniseg
/root/go/pkg/mod/github.com/rivo/uniseg@v0.3.4/properties.go:130:6: missing function body
/root/go/pkg/mod/github.com/rivo/uniseg@v0.3.4/properties.go:130:20: syntax error: unexpected [, expecting (
note: module requires Go 1.18
make: *** [Makefile:56: /opt/git/btrfscue/bin/btrfscue] Error 2
1.18 (last version) has the same error as 1.22.5 though:
# make
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
[Build] /opt/git/btrfscue/bin/btrfscue
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
make: *** [Makefile:56: /opt/git/btrfscue/bin/btrfscue] Error 1
Workaround:
In Makefile I changed go install to go install -buildvcs=false and it compiled.
I assume this workaround shouldn't be committed to git, since it doesn't version stamp the binary. I'm not sure the real way to solve it, even after reading the azurelinux issue above.
The text was updated successfully, but these errors were encountered:
Won't build
I tried downgrading to Go 1.17.x as recommended here: microsoft/azurelinux#3273 but that didn't work because then make shows an error saying it requires 1.18
Workaround:
Makefile
I changedgo install
togo install -buildvcs=false
and it compiled.I assume this workaround shouldn't be committed to git, since it doesn't version stamp the binary. I'm not sure the real way to solve it, even after reading the azurelinux issue above.
The text was updated successfully, but these errors were encountered: