bazel-contrib / bazel-contrib/rules_go
`nogo` error with Golang 1.20
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 760
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
### What version of rules_go are you using?
`0.38.1`
### What version of gazelle are you using?
`0.26.0`
### What version of Bazel are you using?
`6.0.0`
### Does this issue reproduce with the latest releases of all the above?
Yes
### What operating system and processor architecture are you using?
Linux
### What did you do?
```
go_register_toolchains(
nogo = "@//:nogo",
version = "1.20",
)
```
### What did you expect to see?
Success
### What did you see instead?
```
ERROR: /private/var/tmp/_bazel_user/nnn/external/io_bazel_rules_go/go/tools/builders/BUILD.bazel:77:10: no such package '@org_golang_x_tools//internal/facts': BUILD file not found in directory 'internal/facts' of external repository @org_golang_x_tools. Add a BUILD file to a directory to mark it as a package. and referenced by '@io_bazel_rules_go//go/tools/builders:nogo_srcs'
```
Contributor guide
Research direction
Start by reproducing the `go_register_toolchains` configuration with rules_go 0.38.1, Gazelle 0.26.0, Bazel 6.0.0, and Go 1.20. Read `go/tools/builders/BUILD.bazel` around line 77 and investigate why `@org_golang_x_tools//internal/facts` is unavailable; done means the configuration builds successfully without the reported `nogo` error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100