bazel-contrib / bazel-contrib/rules_go
An error occurred during the fetch of repository 'bazel_gazelle_go_repository_tools'
- 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?
v0.42.0
### What version of gazelle are you using?
v0.33.0
### What version of Bazel are you using?
v1.8.1
### Does this issue reproduce with the latest releases of all the above?
yes
### What operating system and processor architecture are you using?
### Any other potentially useful information about your toolchain?
### What did you do?
### What did you expect to see?
### What did you see instead?
ERROR: An error occurred during the fetch of repository 'bazel_gazelle_go_repository_tools':
Traceback (most recent call last):
File "/home/80374865/.cache/bazel/_bazel_ADC\80374865/2e6d5de2de8bcd64b3fdd61cfeeb60eb/external/bazel_gazelle/internal/go_repository_tools.bzl", line 103, column 13, in _go_repository_tools_impl
fail("failed to build tools: " + result.stderr)
Error in fail: failed to build tools: ../go_sdk/src/crypto/internal/nistec/p256_asm.go:322:12: pattern p256_asm_table.bin: no matching files found
ERROR: /home/80374865/projects/Skia-Buildbot/buildbot/WORKSPACE:86:21: fetching go_repository_tools rule //external:bazel_gazelle_go_repository_tools: Traceback (most recent call last):
File "/home/80374865/.cache/bazel/_bazel_ADC\80374865/2e6d5de2de8bcd64b3fdd61cfeeb60eb/external/bazel_gazelle/internal/go_repository_tools.bzl", line 103, column 13, in _go_repository_tools_impl
fail("failed to build tools: " + result.stderr)
Error in fail: failed to build tools: ../go_sdk/src/crypto/internal/nistec/p256_asm.go:322:12: pattern p256_asm_table.bin: no matching files found
ERROR: Skipping '//...': error loading package under directory '': error loading package '': Encountered error while reading extension file 'buildifier/def.bzl': no such package '@com_github_bazelbuild_buildtools//buildifier': no such package '@bazel_gazelle_go_repository_config//': no such package '@bazel_gazelle_go_repository_tools//': failed to build tools: ../go_sdk/src/crypto/internal/nistec/p256_asm.go:322:12: pattern p256_asm_table.bin: no matching files found
WARNING: Target pattern parsing failed.
ERROR: error loading package under directory '': error loading package '': Encountered error while reading extension file 'buildifier/def.bzl': no such package '@com_github_bazelbuild_buildtools//buildifier': no such package '@bazel_gazelle_go_repository_config//': no such package '@bazel_gazelle_go_repository_tools//': failed to build tools: ../go_sdk/src/crypto/internal/nistec/p256_asm.go:322:12: pattern p256_asm_table.bin: no matching files found
INFO: Elapsed time: 6.501s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (835 packages loaded)
currently loading: ... (1300 packages)
Fetching @com_github_bazelbuild_buildtools; Restarting. 5s
Fetching @bazel_gazelle_go_repository_config; Restarting. 5s
Fetching @npm; Running npm install on //:package.json 5s
Contributor guide
Research direction
Start with the WORKSPACE entry at line 86 and reproduce the fetch failure using the reported rules_go, Gazelle, and Bazel versions. Read external/bazel_gazelle/internal/go_repository_tools.bzl around line 103 and inspect the Go SDK error for p256_asm_table.bin. Done should mean the repository fetch completes successfully and the reported Bazel loading errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100