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

cmd/dist: fails w/o .git or VERSION with no actionable error message #9932

Closed
proppy opened this issue Feb 19, 2015 · 1 comment
Closed

cmd/dist: fails w/o .git or VERSION with no actionable error message #9932

proppy opened this issue Feb 19, 2015 · 1 comment
Milestone

Comments

@proppy
Copy link
Contributor

@proppy proppy commented Feb 19, 2015

Building a tarball snapshot fails with the following error, because the source tree is not a git repo:

...
##### Building compilers and Go bootstrap tool for host, darwin/amd64.
++ buildall=-a
++ '[' --no-banner = --no-clean ']'
++ ./cmd/dist/dist bootstrap -a -v
fatal: Not a git repository (or any of the parent directories): .git

go tool dist: FAILED: git rev-parse --abbrev-ref HEAD

An "easy" workaround is to create a VERSIONfile, it would be nice if the error message was pointing that out.

@bradfitz bradfitz added this to the Go1.5Maybe milestone Feb 19, 2015
@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Feb 19, 2015

Yeah, a nicer error message would be good there.

/cc @adg

@adg adg closed this in 5f84238 Feb 19, 2015
@mikioh mikioh changed the title cmd/dist fails w/o .git or VERSION with no actionable error message cmd/dist: fails w/o .git or VERSION with no actionable error message Feb 20, 2015
@mikioh mikioh modified the milestones: Go1.5Maybe, Go1.5 Feb 24, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.