/ go Public
go build requires versioned replace directive when replacing a used module with a local path
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
Given the following workspace structure:
With the following
realdealwhich depends on
What did you expect to see?
Nothing, the build should succeed
What did you see instead?
The only way I've found to fix this is to update the
go.workto be as follow:
This is not needed if a workspace is not used. It also seems to contradict the example from the documentation (https://go.dev/ref/mod#workspaces):
The text was updated successfully, but these errors were encountered: