Go/Bazel: fix gazelle invocation to use bundled bazel go

This commit is contained in:
Paolo Tranquilli
2024-08-05 10:13:14 +02:00
parent 6273bb60a3
commit ccec347b0a
8 changed files with 13 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ def options():
opts = options()
try:
workspace_dir = pathlib.Path(os.environ.pop('BUILD_WORKSPACE_DIRECTORY'))
workspace_dir = pathlib.Path(os.environ['BUILD_WORKSPACE_DIRECTORY'])
except KeyError:
print("this should be run with bazel run", file=sys.stderr)
sys.exit(1)