-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Won't build
- Go: 1.22.5
- btrfscue: git cd18553
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
MakefileI changedgo installtogo install -buildvcs=falseand 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels