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

Not possible to build go from source tarballs #68837

Closed
non7top opened this issue Aug 11, 2024 · 5 comments
Closed

Not possible to build go from source tarballs #68837

non7top opened this issue Aug 11, 2024 · 5 comments

Comments

@non7top
Copy link

non7top commented Aug 11, 2024

Go version

go1.22.6

Output of go env in your module/workspace:

n/a

What did you do?

Building go1.22.6 from source
https://go.dev/dl/go1.22.6.src.tar.gz

What did you see happen?

$ GOROOT_BOOTSTRAP=/home/local/go1.19.5 ./make.bash

Building Go cmd/dist using /home/local/go1.19.5. (go1.19.5 linux/amd64)
found packages main (build.go) and building_Go_requires_Go_1_20_6_or_later (notgo120.go) in /home/local/go1.22.6/src/cmd/dist

But building of 1.20.6 (and up to on series 1.20.14) is not supported due to a bug
See #68834

What did you expect to see?

A way to build current latest go from the official tarballs.

@seankhliao
Copy link
Member

Duplicate of #68834

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2024
@non7top
Copy link
Author

non7top commented Aug 11, 2024

This is not a question, this a bug report.

@seankhliao
Copy link
Member

seankhliao commented Aug 11, 2024

As far as we can tell, it's something specific to your environment that you're not telling us about, since the instructions you provided do not reproduce the issue.
Regardless, as it's an out of support version, it's not going to see any more commits, and the error for the current version is correct.

Perhaps someone in the forums would be willing to troubleshoot your issue.

@non7top
Copy link
Author

non7top commented Aug 11, 2024

Thanks. I tried on a clean environment and wasn't able to reproduce the issue. I then ran a build with strace which revealed the problem.
So the build system scans the filesystem and if it finds .git directory somewhere (even if it is outside of the go sources location) it assumes there is git involved somehow, it then runs git status --porcelain which returns fatal: not a git repository (or any of the parent directories): .git (with exist code 128) which build system treats as an error. This is where the bug is.
So the bug is definitely there (in how vcs is detected), but oh well, it is an ancient software and at least it can be worked around.

Thanks for your help.

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

3 participants