Skip to content

go_repository_tools: build with -buildvcs=false#2324

Merged
jayconrod merged 2 commits intomasterfrom
disable-buildvcs
Apr 6, 2026
Merged

go_repository_tools: build with -buildvcs=false#2324
jayconrod merged 2 commits intomasterfrom
disable-buildvcs

Conversation

@jayconrod
Copy link
Copy Markdown
Contributor

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

go_repository_tools

What does this PR do? Why is it needed?

Adds -buildvcs=false to the command line when building gazelle and other binaries for use within go_repository.

Leaving VCS stamping enabled may cause problems if a VCS tool is misconfigured. We don't really need VCS stamping.

Which issues(s) does this PR fix?

Fixes #2323

Other notes for review

@jayconrod jayconrod requested a review from fmeum April 5, 2026 20:42
@jayconrod jayconrod enabled auto-merge (squash) April 6, 2026 14:19
@jayconrod jayconrod merged commit ba1056d into master Apr 6, 2026
17 checks passed
@jayconrod jayconrod deleted the disable-buildvcs branch April 6, 2026 14:25
wonderyl pushed a commit to wonderyl/bazel-gazelle that referenced this pull request Apr 13, 2026
**What type of PR is this?**

> Bug fix

**What package or component does this PR mostly affect?**

`go_repository_tools`

**What does this PR do? Why is it needed?**

Adds `-buildvcs=false` to the command line when building `gazelle` and
other binaries for use within `go_repository`.

Leaving VCS stamping enabled may cause problems if a VCS tool is
misconfigured. We don't really need VCS stamping.

**Which issues(s) does this PR fix?**

Fixes bazel-contrib#2323

**Other notes for review**
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

Successfully merging this pull request may close these issues.

bazel run //:gazelle failed with error obtaining VCS status: exit status 128

2 participants