You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
project is in the gopath under /home/CC/go/src/project/
app1 imports lib1 with "project/lib1"
Only the project root has a go.mod file, which contains 3rd party imports
When go build is executed in app1, lib1 is fetched locally, while 3rd party imports such as "github.com/BurntSushi/toml" are fetched remotely with the latest revision. If a "github.com/BurntSushi/toml" version is specified in the go.mod file in the project root, go build in app1 will fetch that specific version.
What did you expect to see?
go build in app1 builds without go modules, or always fetches latest revision of all dependencies. I expected the go.mod file in the project root to be ignored.
Is it intended that go module works if there is only a go mod file in the parent project directory?
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Given the following situation:
When go build is executed in app1, lib1 is fetched locally, while 3rd party imports such as "github.com/BurntSushi/toml" are fetched remotely with the latest revision. If a "github.com/BurntSushi/toml" version is specified in the go.mod file in the project root, go build in app1 will fetch that specific version.
What did you expect to see?
go build in app1 builds without go modules, or always fetches latest revision of all dependencies. I expected the go.mod file in the project root to be ignored.
Is it intended that go module works if there is only a go mod file in the parent project directory?
The text was updated successfully, but these errors were encountered: