Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't build due to error obtaining VCS status: exit status 128 (and workaround) #18

Open
Poikilos opened this issue Aug 1, 2024 · 0 comments

Comments

@Poikilos
Copy link

Poikilos commented Aug 1, 2024

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

# 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant