Bazel unable to build go targets (version 1.21) due to new workspace mode

What version of rules_go are you using?

0.42.0

What version of gazelle are you using?

0.33.0

What version of Bazel are you using?

6.4.0

Does this issue reproduce with the latest releases of all the above?

yes

What operating system and processor architecture are you using?

MacOS Sonoma / Apple M2 Pro

What did you do?

upgraded to go 1.21, now when I run bazel build //... , all of the external go modules my program utilizes throws errors related to the new workspace mode introduced in 1.18 https://go.dev/doc/tutorial/workspaces:

enter image description here

How do i resolve this? there is no feasible way to add all the modules used in that directory to a go.work file. Is there a way to turn this new workspace mode off?



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation