rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

Broken link in repositories.bzl - causes spurious warning

Open oakad opened this issue 2 years ago • 0 comments

rules_go v0.43.0 gazelle v0.34.0 Bazel v6.4.0

The issue was introduces around v0.43.0, though it may not be rules_go fault.

When building/running go program the following warning appears in the log:

WARNING: Download from https://mirror.bazel.build/github.com/golang/sys/archive/refs/tags/v0.14.0.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found

Upstream (that is GitHub) has that file, but mirror.bazel.build somehow forgot to fetch it.

When doing silent builds for testing this breaks things. Even with "--ui_event_filters=-info,-stdout,-stderr --noshow_progress" passed, the warning creeps into the output and breaks it.

I believe, the following location is responsible: https://github.com/bazelbuild/rules_go/blob/d9fb4f9854458e3d2b254f6e037678e978313f3d/go/private/repositories.bzl#L110

oakad avatar Dec 12 '23 04:12 oakad