-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add -buildvcs=false build option #48
Comments
Hi @amelkikh, Thanks for reporting this 🙇 Can you confirm that you are using Ubuntu 18.04 and what your git version is? This seems to be related to golang/go#51253 I personally will prefer if |
Hi!
|
I have an idea to check Go version at runtime and add different behavior for version < 1.18 also add additional github actions to check builds with Go versions matrix. |
Sorry for the slow response, this kind of fell through the cracks and I had a few days off. 🙇
I did have similar idea for the previous time we wanted to do different things with different go versions, but:
I am also pretty certain this has very little to do with the actual go version - yes if you use older version of go it likely won't add the VCS data and as such won't use the I also don't know how old of a git version it needs but 2.25.1 seems ... close enough. Can you try to build something with just pure go and see what it says - maybe the error then will be more understandable 🤔 Ultimately implementing #4 will let you set whatever(or at least most) flags you need to fix or change the way xk6 builds. So this is definitely the superiour solution IMO. If you are interested - go for it, but otherwise I don't know when I or somebody else will have time to do it :( |
Hm ... I just tested in a docker container with Ubuntu 20.04 and it worked for me - I had to download the 1.19.1 from golang.org and play with PATH (as the one included with ubuntu is 1.13). No idea why yours didn't work 🤔 Are you sure that |
Hi!
There is an error occurred while run build command
$ uname 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: