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
Not using GOPATH I am importing hlog in main.go and subcode.go
import (
"git.private.home/Dumper/hlog"
)
GO111MODULE=on is what I am using. But now I need to fix or investigate something in hlog and this justifies the use of replace according to this documentation
I edited go.mod in mypackage to show this for hlog:
Would expect to see mypackage compile where all source files import the local version of hlog instead of the VCS version.
What did you see instead?
I see that main.go is using the rewritten hlog version, but subpackage/subcode.go still uses the VCS version. This renders the replace directive useless if you have subpackages using the same dependencies.
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?
I guess this is the latest release, afaik, humbly :)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a module that has is a package and has a subpackage, both importing the same dependency.
Not using GOPATH I am importing hlog in main.go and subcode.go
GO111MODULE=on is what I am using. But now I need to fix or investigate something in hlog and this justifies the use of replace according to this documentation
I edited go.mod in mypackage to show this for hlog:
What did you expect to see?
Would expect to see mypackage compile where all source files import the local version of hlog instead of the VCS version.
What did you see instead?
I see that main.go is using the rewritten hlog version, but subpackage/subcode.go still uses the VCS version. This renders the replace directive useless if you have subpackages using the same dependencies.
The text was updated successfully, but these errors were encountered: