Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: use simpler "go get" to pull a version through the proxy
Sometimes, proxy.golang.org flakes with a confusing error: server response: not found: cuelang.org/go/cmd/cue@v0.0.0-20230202153442-63749fe7d1fc: invalid version: missing cuelang.org/go/cmd/cue/go.mod at revision 63749fe The error is not our fault, and it looks like some sort of race or temporary problem on the proxy's side. It is interesting that it tries to locate a go.mod file inside cmd/cue. We only need to pull the module through the proxy, not a package, so doing just that is simpler and may make this edge case failure less likely to happen in practice. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I18759da21d45f25dc65049cac4c691ea0f9d38b0 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549384 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information