Skip to content

Commit db149ae

Browse files
committed
[go] remove gowork=off
1 parent a0e26b8 commit db149ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go-monorepo/gotidy.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ cd "${repo}"
5252
go work use
5353
mods="$(go list -m -f "{{`{{.Dir}}`}}")"
5454

55-
# Disable workspaces to ensure that each module builds successfully outside of
56-
# the workspace. This is important for Docker containers or mirrored open
57-
# source repos where the workspace won't exist.
58-
export GOWORK=off
55+
# TODO: Add a script that runs this with GOWORK=off to check that the modules
56+
# build with the workspace disabled. This is useful to ensure that the modules
57+
# are self-contained and don't rely on the workspace for dependencies.
58+
# export GOWORK=off
5959

6060
# Update the Go version first, since that will influence how Go updates
6161
# dependencies and tidies the modules.

0 commit comments

Comments
 (0)