Skip to content

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

Description

@proppy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions