Open MattyKuzyk opened 1 year ago
@chrislovecnm look right to you?
We need to fix this rather than delete the line, as it is needed. When you run gazelle first do you have any Build files? Otherwise we need to touch the missing file.
I do have the same BUILD
file specified by the tutorial. The error was reproduced by following the tutorial to the letter.
Deleting that line is fine. When bazel run //:gazelle-update-repos
is run, those lines are auto-generated. If you were to follow the tutorial with these fixes, it will function correctly.
This also mimics the workspace file in the official Gazelle Go tutorial
I think I figured out the fix for it. You need a deps.bizl with a function in it I will submit a PR.
I created https://github.com/bazel-contrib/SIG-rules-authors/pull/74 to fix the deps.bzl problem. @MattyKuzy what do you think?
s/bazelist/bazelisk/g
Also, the line to load the
deps.bzl
doesn't work if you're trying to follow the tutorial. That file has not been generated yet so any Bazel commands break when theWORKSPACE
tries to load it. That code will be generated bybazel run //:gazelle-update-repos