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

replace golang.org/x/tools with golang.org/x/tools/go/vcs@v0.1.0-deprecated #1603

Merged
merged 5 commits into from
Aug 28, 2023

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented Aug 12, 2023

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

go dependencies

What does this PR do? Why is it needed?

golang/x/tools no longer ships the vcs package. Instead, there is a new module that now contains the same code.

Which issues(s) does this PR fix?

Fixes #1579

Other notes for review

@malt3 malt3 force-pushed the deps/x-tools-go-vcs branch 5 times, most recently from 319670f to 43a947d Compare August 12, 2023 15:41
@malt3
Copy link
Contributor Author

malt3 commented Aug 12, 2023

I do not understand why gazelle wants to modify the build files in this way.
The same check works when I run it under bzlmod: bazel run //:gazelle_ci --enable_bzlmod
We clearly depend on golang.org/x/tools/go/vcs (and we even depend on a newer version of golang.org/x/tools that doesn't have the vcs package anymore).

$ bazel run //:gazelle_ci 
INFO: Analyzed target //:gazelle_ci (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:gazelle_ci up-to-date:
  bazel-bin/gazelle_ci-runner.bash
  bazel-bin/gazelle_ci
INFO: Elapsed time: 0.106s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/gazelle_ci
--- cmd/fetch_repo/BUILD.bazel  1970-01-01 00:00:00.000000001 +0000
+++ cmd/fetch_repo/BUILD.bazel  1970-01-01 00:00:00.000000001 +0000
@@ -9,7 +9,7 @@
     ],
     importpath = "github.com/bazelbuild/bazel-gazelle/cmd/fetch_repo",
     visibility = ["//visibility:private"],
-    deps = ["@org_golang_x_tools_go_vcs//:vcs"],
+    deps = ["@org_golang_x_tools//go/vcs"],
 )
 
 go_binary(
@@ -22,7 +22,7 @@
     name = "fetch_repo_test",
     srcs = ["fetch_repo_test.go"],
     embed = [":fetch_repo_lib"],
-    deps = ["@org_golang_x_tools_go_vcs//:vcs"],
+    deps = ["@org_golang_x_tools//go/vcs"],
 )
 
 filegroup(
--- language/go/BUILD.bazel     1970-01-01 00:00:00.000000001 +0000
+++ language/go/BUILD.bazel     1970-01-01 00:00:00.000000001 +0000
@@ -84,7 +84,7 @@
         "@com_github_bazelbuild_buildtools//build:go_default_library",
         "@com_github_google_go_cmp//cmp",
         "@io_bazel_rules_go//go/tools/bazel:go_default_library",
-        "@org_golang_x_tools_go_vcs//:vcs",
+        "@org_golang_x_tools//go/vcs",
     ],
 )
 
--- repo/BUILD.bazel    1970-01-01 00:00:00.000000001 +0000
+++ repo/BUILD.bazel    1970-01-01 00:00:00.000000001 +0000
@@ -13,7 +13,7 @@
         "//pathtools",
         "//rule",
         "@org_golang_x_mod//modfile",
-        "@org_golang_x_tools_go_vcs//:vcs",
+        "@org_golang_x_tools//go/vcs",
     ],
 )
 
@@ -29,7 +29,7 @@
         "//pathtools",
         "//rule",
         "//testtools",
-        "@org_golang_x_tools_go_vcs//:vcs",
+        "@org_golang_x_tools//go/vcs",
     ],
 )
 

MODULE.bazel Outdated Show resolved Hide resolved
deps.bzl Outdated Show resolved Hide resolved
internal/bzlmod/default_gazelle_overrides.bzl Outdated Show resolved Hide resolved
@fmeum
Copy link
Collaborator

fmeum commented Aug 22, 2023

@malt3 You probably need to add a # gazelle:repository directive to the very end of WORKSPACE.

@malt3 malt3 force-pushed the deps/x-tools-go-vcs branch 2 times, most recently from ea53218 to 6bf371a Compare August 23, 2023 11:14
deps.bzl Outdated Show resolved Hide resolved
WORKSPACE Show resolved Hide resolved
@malt3 malt3 force-pushed the deps/x-tools-go-vcs branch 3 times, most recently from 87f08d9 to 988fb19 Compare August 23, 2023 13:09
@tyler-french
Copy link
Contributor

I tested this at Uber and it works (with a patch to buildtools). Could you update buildtools again to include bazelbuild/buildtools@691e01a ?

Separately and optionally: I took a different approach in #1615 (which has similar logic) to include a ghost import to x/tools: https://github.com/bazelbuild/bazel-gazelle/pull/1615/files#diff-fe5a1af491aaa37acf76bdff0f3bb47ddbca27356b676128e21298a4e58b46cb . This approach is a bit hacky, but what if instead we have a file (called nogodeps.go), which is just

package nogodeps

import (
	// These deps are required by @rules_go//go/tools/builders/nogo_main.go
	// These ghost imports force them to be to be included in the `go.mod`,
	// and therefore in deps.bzl and MODULE.bzl/go_deps
	_ "golang.org/x/tools/go/analysis"
	_ "golang.org/x/tools/go/gcexportdata"
	_ "golang.org/x/tools/internal/facts"
)

By including these deps in Go (rather than just Bazel), it also allows the bazel run //tools/releaser to update them automatically.

That being said, it is more hacky and therefore less "correct", which could be a drawback.

@fmeum, @linzhp Do you have an opinion on these approaches?

@malt3
Copy link
Contributor Author

malt3 commented Aug 23, 2023

I tested this at Uber and it works (with a patch to buildtools). Could you update buildtools again to include bazelbuild/buildtools@691e01a ?

Will do!

EDIT: done

@malt3
Copy link
Contributor Author

malt3 commented Aug 23, 2023

Separately and optionally: I took a different approach in #1615 (which has similar logic) to include a ghost import to x/tools

I personally would be fine with either solution. If you see a benefit in the other, feel free to close this PR and go with the ghost import :). It feels like we should implement bazelbuild/rules_go#3646 to completely remove this class of problems.

@tyler-french
Copy link
Contributor

Separately and optionally: I took a different approach in #1615 (which has similar logic) to include a ghost import to x/tools

I personally would be fine with either solution. If you see a benefit in the other, feel free to close this PR and go with the ghost import :). It feels like we should implement bazelbuild/rules_go#3646 to completely remove this class of problems.

Sounds good 😄. Let me know if you think the approach in #1615 is sufficient. One benefit here is that the releaser will automatically update this dep for us, but this is the only real benefit I can think of.

@fmeum fmeum enabled auto-merge (squash) August 28, 2023 07:49
@fmeum fmeum merged commit 2f257dc into bazelbuild:master Aug 28, 2023
8 of 10 checks passed
@malt3 malt3 deleted the deps/x-tools-go-vcs branch August 28, 2023 17:09
cgrindel-self-hosted-renovate bot added a commit to cgrindel/bazel-starlib that referenced this pull request Sep 8, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [bazel_gazelle](https://togithub.com/bazelbuild/bazel-gazelle) |
http_archive | minor | `v0.32.0` -> `v0.33.0` |

---

### Release Notes

<details>
<summary>bazelbuild/bazel-gazelle (bazel_gazelle)</summary>

###
[`v0.33.0`](https://togithub.com/bazelbuild/bazel-gazelle/releases/tag/v0.33.0)

[Compare
Source](https://togithub.com/bazelbuild/bazel-gazelle/compare/v0.32.0...v0.33.0)

#### What's Changed

- Generate BUILD files for grpc-gateway by default by
[@&#8203;seh](https://togithub.com/seh) in
[bazelbuild/bazel-gazelle#1578
- Remove temporary workaround after rules_go 0.41.0 release by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1577
- bzlmod: Use first host-compatible SDK to bootstrap Gazelle by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1581
- Update: golang.org/x/exp & golang.org/x/oauth2 deps. by
[@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) in
[bazelbuild/bazel-gazelle#1582
- \[README.rst] Mention kotlin PoC by
[@&#8203;kolloch](https://togithub.com/kolloch) in
[bazelbuild/bazel-gazelle#1590
- Fix and let `# gazelle:follow` accept a glob by
[@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1596
- Add support for isolated `go_deps` usages by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1584
- feat(bzlmod): support archive_override in go_deps by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1559
- fix: avoid updating `WORKSPACE` file when running `update-repos` when
bzlmod is enabled by [@&#8203;cgrindel](https://togithub.com/cgrindel)
in
[bazelbuild/bazel-gazelle#1589
- Make `go_deps.from_file` compatible with Go 1.21 by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1605
- go_repository: fix missing default GOPROXY by
[@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1602
- fix: patch support for dir named workspace by
[@&#8203;michaellzc](https://togithub.com/michaellzc) in
[bazelbuild/bazel-gazelle#1606
- Revert "go_repository: fix missing default GOPROXY
([#&#8203;1602](https://togithub.com/bazelbuild/bazel-gazelle/issues/1602))"
by [@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1609
- Upgrade `golang.org/x/mod` Vendor to Support Go 1.21 by
[@&#8203;alan910127](https://togithub.com/alan910127) in
[bazelbuild/bazel-gazelle#1611
- fix: go_repository: never shadow a module with a compatibility mapping
for major versions. by [@&#8203;reltuk](https://togithub.com/reltuk) in
[bazelbuild/bazel-gazelle#1608
- bug fix: don't generate invalid go_binary rules for empty main
packages by [@&#8203;andyscott](https://togithub.com/andyscott) in
[bazelbuild/bazel-gazelle#1618
- Fix wrong Kotlin Support link in README. by
[@&#8203;duckladydinh](https://togithub.com/duckladydinh) in
[bazelbuild/bazel-gazelle#1619
- bzlmod: Verify that the lockfile is platform-independent by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1617
- Add gazelle_rust under supported languages by
[@&#8203;Calsign](https://togithub.com/Calsign) in
[bazelbuild/bazel-gazelle#1620
- replace golang.org/x/tools with
golang.org/x/tools/go/vcs@v0.1.0-deprecated by
[@&#8203;malt3](https://togithub.com/malt3) in
[bazelbuild/bazel-gazelle#1603
- Implement Merger interface by
[@&#8203;Whoaa512](https://togithub.com/Whoaa512) in
[bazelbuild/bazel-gazelle#1569
- Improve Gazelle launcher's runfiles discovery on Windows by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1604
- Add an entry for "github.com/googleapis/gax-go/v2" to
default_gazelle_overrides.bzl by
[@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) in
[bazelbuild/bazel-gazelle#1623
- add a go_test directive to enable generating go_test targets per
\_test.go file by [@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1597
- Detect whether Gazelle itself is a Bazel module by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1624
- prepare release 0.33 by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1615

#### New Contributors

- [@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) made their
first contribution in
[bazelbuild/bazel-gazelle#1582
- [@&#8203;kolloch](https://togithub.com/kolloch) made their first
contribution in
[bazelbuild/bazel-gazelle#1590
- [@&#8203;shahms](https://togithub.com/shahms) made their first
contribution in
[bazelbuild/bazel-gazelle#1596
- [@&#8203;michaellzc](https://togithub.com/michaellzc) made their first
contribution in
[bazelbuild/bazel-gazelle#1606
- [@&#8203;alan910127](https://togithub.com/alan910127) made their first
contribution in
[bazelbuild/bazel-gazelle#1611
- [@&#8203;reltuk](https://togithub.com/reltuk) made their first
contribution in
[bazelbuild/bazel-gazelle#1608
- [@&#8203;andyscott](https://togithub.com/andyscott) made their first
contribution in
[bazelbuild/bazel-gazelle#1618
- [@&#8203;duckladydinh](https://togithub.com/duckladydinh) made their
first contribution in
[bazelbuild/bazel-gazelle#1619
- [@&#8203;Calsign](https://togithub.com/Calsign) made their first
contribution in
[bazelbuild/bazel-gazelle#1620
- [@&#8203;malt3](https://togithub.com/malt3) made their first
contribution in
[bazelbuild/bazel-gazelle#1603
- [@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) made their
first contribution in
[bazelbuild/bazel-gazelle#1623

**Full Changelog**:
bazelbuild/bazel-gazelle@v0.32.0...v0.33.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44Ny4wIiwidXBkYXRlZEluVmVyIjoiMzYuODcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
renovate bot added a commit to kreempuff/rules_unreal_engine that referenced this pull request Sep 8, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [bazel_gazelle](https://togithub.com/bazelbuild/bazel-gazelle) |
http_archive | minor | `v0.32.0` -> `v0.33.0` |

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>bazelbuild/bazel-gazelle (bazel_gazelle)</summary>

###
[`v0.33.0`](https://togithub.com/bazelbuild/bazel-gazelle/releases/tag/v0.33.0)

[Compare
Source](https://togithub.com/bazelbuild/bazel-gazelle/compare/v0.32.0...v0.33.0)

#### What's Changed

- Generate BUILD files for grpc-gateway by default by
[@&#8203;seh](https://togithub.com/seh) in
[bazelbuild/bazel-gazelle#1578
- Remove temporary workaround after rules_go 0.41.0 release by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1577
- bzlmod: Use first host-compatible SDK to bootstrap Gazelle by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1581
- Update: golang.org/x/exp & golang.org/x/oauth2 deps. by
[@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) in
[bazelbuild/bazel-gazelle#1582
- \[README.rst] Mention kotlin PoC by
[@&#8203;kolloch](https://togithub.com/kolloch) in
[bazelbuild/bazel-gazelle#1590
- Fix and let `# gazelle:follow` accept a glob by
[@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1596
- Add support for isolated `go_deps` usages by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1584
- feat(bzlmod): support archive_override in go_deps by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1559
- fix: avoid updating `WORKSPACE` file when running `update-repos` when
bzlmod is enabled by [@&#8203;cgrindel](https://togithub.com/cgrindel)
in
[bazelbuild/bazel-gazelle#1589
- Make `go_deps.from_file` compatible with Go 1.21 by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1605
- go_repository: fix missing default GOPROXY by
[@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1602
- fix: patch support for dir named workspace by
[@&#8203;michaellzc](https://togithub.com/michaellzc) in
[bazelbuild/bazel-gazelle#1606
- Revert "go_repository: fix missing default GOPROXY
([#&#8203;1602](https://togithub.com/bazelbuild/bazel-gazelle/issues/1602))"
by [@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1609
- Upgrade `golang.org/x/mod` Vendor to Support Go 1.21 by
[@&#8203;alan910127](https://togithub.com/alan910127) in
[bazelbuild/bazel-gazelle#1611
- fix: go_repository: never shadow a module with a compatibility mapping
for major versions. by [@&#8203;reltuk](https://togithub.com/reltuk) in
[bazelbuild/bazel-gazelle#1608
- bug fix: don't generate invalid go_binary rules for empty main
packages by [@&#8203;andyscott](https://togithub.com/andyscott) in
[bazelbuild/bazel-gazelle#1618
- Fix wrong Kotlin Support link in README. by
[@&#8203;duckladydinh](https://togithub.com/duckladydinh) in
[bazelbuild/bazel-gazelle#1619
- bzlmod: Verify that the lockfile is platform-independent by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1617
- Add gazelle_rust under supported languages by
[@&#8203;Calsign](https://togithub.com/Calsign) in
[bazelbuild/bazel-gazelle#1620
- replace golang.org/x/tools with
golang.org/x/tools/go/vcs@v0.1.0-deprecated by
[@&#8203;malt3](https://togithub.com/malt3) in
[bazelbuild/bazel-gazelle#1603
- Implement Merger interface by
[@&#8203;Whoaa512](https://togithub.com/Whoaa512) in
[bazelbuild/bazel-gazelle#1569
- Improve Gazelle launcher's runfiles discovery on Windows by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1604
- Add an entry for "github.com/googleapis/gax-go/v2" to
default_gazelle_overrides.bzl by
[@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) in
[bazelbuild/bazel-gazelle#1623
- add a go_test directive to enable generating go_test targets per
\_test.go file by [@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1597
- Detect whether Gazelle itself is a Bazel module by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1624
- prepare release 0.33 by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1615

#### New Contributors

- [@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) made their
first contribution in
[bazelbuild/bazel-gazelle#1582
- [@&#8203;kolloch](https://togithub.com/kolloch) made their first
contribution in
[bazelbuild/bazel-gazelle#1590
- [@&#8203;shahms](https://togithub.com/shahms) made their first
contribution in
[bazelbuild/bazel-gazelle#1596
- [@&#8203;michaellzc](https://togithub.com/michaellzc) made their first
contribution in
[bazelbuild/bazel-gazelle#1606
- [@&#8203;alan910127](https://togithub.com/alan910127) made their first
contribution in
[bazelbuild/bazel-gazelle#1611
- [@&#8203;reltuk](https://togithub.com/reltuk) made their first
contribution in
[bazelbuild/bazel-gazelle#1608
- [@&#8203;andyscott](https://togithub.com/andyscott) made their first
contribution in
[bazelbuild/bazel-gazelle#1618
- [@&#8203;duckladydinh](https://togithub.com/duckladydinh) made their
first contribution in
[bazelbuild/bazel-gazelle#1619
- [@&#8203;Calsign](https://togithub.com/Calsign) made their first
contribution in
[bazelbuild/bazel-gazelle#1620
- [@&#8203;malt3](https://togithub.com/malt3) made their first
contribution in
[bazelbuild/bazel-gazelle#1603
- [@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) made their
first contribution in
[bazelbuild/bazel-gazelle#1623

**Full Changelog**:
bazelbuild/bazel-gazelle@v0.32.0...v0.33.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kreempuff/rules_unreal_engine).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
alexeagle pushed a commit to aspect-build/rules_py that referenced this pull request Nov 14, 2023
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [bazel_gazelle](https://togithub.com/bazelbuild/bazel-gazelle) |
http_archive | minor | `v0.32.0` -> `v0.34.0` |

---

### Release Notes

<details>
<summary>bazelbuild/bazel-gazelle (bazel_gazelle)</summary>

###
[`v0.34.0`](https://togithub.com/bazelbuild/bazel-gazelle/releases/tag/v0.34.0)

[Compare
Source](https://togithub.com/bazelbuild/bazel-gazelle/compare/v0.33.0...v0.34.0)

#### What's Changed

- update readme for v0.33.0 by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1627
- Remove golang.org/x/crypto dep by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1631
- Fix map_kind with empty rules by
[@&#8203;lbcjbb](https://togithub.com/lbcjbb) in
[bazelbuild/bazel-gazelle#1441
- fix: add missing bzl_library declaration and dep by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[bazelbuild/bazel-gazelle#1633
- chore: add bzl_test to ensure that bzl_library declarations exist by
[@&#8203;cgrindel](https://togithub.com/cgrindel) in
[bazelbuild/bazel-gazelle#1634
- Set runfiles environment variables for Gazelle by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1632
- address comments from
[#&#8203;1597](https://togithub.com/bazelbuild/bazel-gazelle/issues/1597)
by [@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1628
- Fix kinds and stmt by [@&#8203;birunts](https://togithub.com/birunts)
in
[bazelbuild/bazel-gazelle#1613
- Export workspace file in go_repository_config.bzl by
[@&#8203;mortenmj](https://togithub.com/mortenmj) in
[bazelbuild/bazel-gazelle#1641
- Add github.com/google/gnostic-models to default_gazelle_overrides.bzl
by [@&#8203;mortenmj](https://togithub.com/mortenmj) in
[bazelbuild/bazel-gazelle#1645
- Support parsing labels that begin '@&#8203;@&#8203;' by
[@&#8203;mark-thm](https://togithub.com/mark-thm) in
[bazelbuild/bazel-gazelle#1651
- Fix path for google/gnostic-models by
[@&#8203;mortenmj](https://togithub.com/mortenmj) in
[bazelbuild/bazel-gazelle#1652
- fix(bzlmod): allow passing build_extra_args in gazelle_override by
[@&#8203;casuallyhostile](https://togithub.com/casuallyhostile) in
[bazelbuild/bazel-gazelle#1648
- prepare release 0.34.0 by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1656

#### New Contributors

- [@&#8203;casuallyhostile](https://togithub.com/casuallyhostile) made
their first contribution in
[bazelbuild/bazel-gazelle#1648

**Full Changelog**:
bazelbuild/bazel-gazelle@v0.33.0...v0.34.0

###
[`v0.33.0`](https://togithub.com/bazelbuild/bazel-gazelle/releases/tag/v0.33.0)

[Compare
Source](https://togithub.com/bazelbuild/bazel-gazelle/compare/v0.32.0...v0.33.0)

#### What's Changed

- Generate BUILD files for grpc-gateway by default by
[@&#8203;seh](https://togithub.com/seh) in
[bazelbuild/bazel-gazelle#1578
- Remove temporary workaround after rules_go 0.41.0 release by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1577
- bzlmod: Use first host-compatible SDK to bootstrap Gazelle by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1581
- Update: golang.org/x/exp & golang.org/x/oauth2 deps. by
[@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) in
[bazelbuild/bazel-gazelle#1582
- \[README.rst] Mention kotlin PoC by
[@&#8203;kolloch](https://togithub.com/kolloch) in
[bazelbuild/bazel-gazelle#1590
- Fix and let `# gazelle:follow` accept a glob by
[@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1596
- Add support for isolated `go_deps` usages by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1584
- feat(bzlmod): support archive_override in go_deps by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1559
- fix: avoid updating `WORKSPACE` file when running `update-repos` when
bzlmod is enabled by [@&#8203;cgrindel](https://togithub.com/cgrindel)
in
[bazelbuild/bazel-gazelle#1589
- Make `go_deps.from_file` compatible with Go 1.21 by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1605
- go_repository: fix missing default GOPROXY by
[@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1602
- fix: patch support for dir named workspace by
[@&#8203;michaellzc](https://togithub.com/michaellzc) in
[bazelbuild/bazel-gazelle#1606
- Revert "go_repository: fix missing default GOPROXY
([#&#8203;1602](https://togithub.com/bazelbuild/bazel-gazelle/issues/1602))"
by [@&#8203;sluongng](https://togithub.com/sluongng) in
[bazelbuild/bazel-gazelle#1609
- Upgrade `golang.org/x/mod` Vendor to Support Go 1.21 by
[@&#8203;alan910127](https://togithub.com/alan910127) in
[bazelbuild/bazel-gazelle#1611
- fix: go_repository: never shadow a module with a compatibility mapping
for major versions. by [@&#8203;reltuk](https://togithub.com/reltuk) in
[bazelbuild/bazel-gazelle#1608
- bug fix: don't generate invalid go_binary rules for empty main
packages by [@&#8203;andyscott](https://togithub.com/andyscott) in
[bazelbuild/bazel-gazelle#1618
- Fix wrong Kotlin Support link in README. by
[@&#8203;duckladydinh](https://togithub.com/duckladydinh) in
[bazelbuild/bazel-gazelle#1619
- bzlmod: Verify that the lockfile is platform-independent by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1617
- Add gazelle_rust under supported languages by
[@&#8203;Calsign](https://togithub.com/Calsign) in
[bazelbuild/bazel-gazelle#1620
- replace golang.org/x/tools with
golang.org/x/tools/go/vcs@v0.1.0-deprecated by
[@&#8203;malt3](https://togithub.com/malt3) in
[bazelbuild/bazel-gazelle#1603
- Implement Merger interface by
[@&#8203;Whoaa512](https://togithub.com/Whoaa512) in
[bazelbuild/bazel-gazelle#1569
- Improve Gazelle launcher's runfiles discovery on Windows by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1604
- Add an entry for "github.com/googleapis/gax-go/v2" to
default_gazelle_overrides.bzl by
[@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) in
[bazelbuild/bazel-gazelle#1623
- add a go_test directive to enable generating go_test targets per
\_test.go file by [@&#8203;shahms](https://togithub.com/shahms) in
[bazelbuild/bazel-gazelle#1597
- Detect whether Gazelle itself is a Bazel module by
[@&#8203;fmeum](https://togithub.com/fmeum) in
[bazelbuild/bazel-gazelle#1624
- prepare release 0.33 by
[@&#8203;tyler-french](https://togithub.com/tyler-french) in
[bazelbuild/bazel-gazelle#1615

#### New Contributors

- [@&#8203;sfc-gh-ptabor](https://togithub.com/sfc-gh-ptabor) made their
first contribution in
[bazelbuild/bazel-gazelle#1582
- [@&#8203;kolloch](https://togithub.com/kolloch) made their first
contribution in
[bazelbuild/bazel-gazelle#1590
- [@&#8203;shahms](https://togithub.com/shahms) made their first
contribution in
[bazelbuild/bazel-gazelle#1596
- [@&#8203;michaellzc](https://togithub.com/michaellzc) made their first
contribution in
[bazelbuild/bazel-gazelle#1606
- [@&#8203;alan910127](https://togithub.com/alan910127) made their first
contribution in
[bazelbuild/bazel-gazelle#1611
- [@&#8203;reltuk](https://togithub.com/reltuk) made their first
contribution in
[bazelbuild/bazel-gazelle#1608
- [@&#8203;andyscott](https://togithub.com/andyscott) made their first
contribution in
[bazelbuild/bazel-gazelle#1618
- [@&#8203;duckladydinh](https://togithub.com/duckladydinh) made their
first contribution in
[bazelbuild/bazel-gazelle#1619
- [@&#8203;Calsign](https://togithub.com/Calsign) made their first
contribution in
[bazelbuild/bazel-gazelle#1620
- [@&#8203;malt3](https://togithub.com/malt3) made their first
contribution in
[bazelbuild/bazel-gazelle#1603
- [@&#8203;andrewmbenton](https://togithub.com/andrewmbenton) made their
first contribution in
[bazelbuild/bazel-gazelle#1623

**Full Changelog**:
bazelbuild/bazel-gazelle@v0.32.0...v0.33.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/aspect-build/rules_py).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jeromep-stripe pushed a commit to jeromep-stripe/bazel-gazelle that referenced this pull request Mar 22, 2024
…ecated (bazelbuild#1603)

* replace golang.org/x/tools with golang.org/x/tools/go/vcs@v0.1.0-deprecated

* Update buildtools to work with `import`-style targets

Allows the following to work:

bazel run //:gazelle_ci --enable_bzlmod

* Remove build_naming_convention=go_default_library for bazel buildtools

* update buildtools override in BCR test
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.

golang.org/x/tools removed vcs package
3 participants