Skip to content

Commit

Permalink
go_deps: ignore go.work toolchain directive (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 authored May 21, 2024
1 parent 6a27127 commit 75eade4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/bzlmod/go_mod.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def parse_go_work(content, go_work_label):
continue
else:
state["use"].append(tokens[1])
elif tokens[0] == "toolchain":
continue
else:
fail("{}:{}: unexpected directive '{}'".format(go_work_label.name, line_no, tokens[0]))

Expand Down

0 comments on commit 75eade4

Please sign in to comment.