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

upgrade x/tools to v0.12.0 #3678

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sluongng
Copy link
Contributor

@sluongng sluongng commented Sep 5, 2023

The upgrade was done with

> bazel run go/tools/releaser -- upgrade-dep org_golang_x_tools

after the patch in #3677.


A few additional updates are needed for this to work:

  • Update to tests/integration/popular_repos to remove unused packages
  • Update to nogo to use the new interface of x/tools

Because this upgrade is NOT backward compatible (by design of x/tools
repo), downstream users of rules_go are advised to upgrade x/tools
version in their repo to v0.12.0 or later to avoid breakages.

@sluongng sluongng changed the title sluongng/upgrade x tools upgrade x/tools to v0.12.0 Sep 5, 2023
Upgrade was done with

```bash
> bazel run go/tools/releaser -- upgrade-dep org_golang_x_tools
```

after the patch in bazel-contrib#3677.

---

A few additional updates needed for this to work:

- Update to `tests/integration/popular_repos` to remove unused packages
- Update to `nogo` to use the new interface of x/tools

Because this upgrade is NOT backward compatible (by design of x/tools
repo), downstream users of rules_go are advised to upgrade `x/tools`
version in their repo to v0.12.0 or later to avoid breakages.
@sluongng sluongng force-pushed the sluongng/upgrade-x-tools branch from 43f6f88 to d45110e Compare September 5, 2023 11:04
@sluongng sluongng marked this pull request as ready for review September 5, 2023 11:05
@sluongng
Copy link
Contributor Author

sluongng commented Sep 5, 2023

@fmeum it looks like Bazel CI is having an issue today. Could you please retry this PR later as well when you have a chance?

@sluongng
Copy link
Contributor Author

sluongng commented Sep 5, 2023

may require gazelle to be upgraded to a version that includes bazel-contrib/bazel-gazelle#1603 so that //tests/integration/gazelle:gazelle_test would pass.

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.

1 participant