-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/vgo: replace directive does not work with modules that do not have a go.mod #24110
Comments
I think this is working as intended. The idea behind replace is to drop in one module for another. Vgo needs that module's requirements and such. |
@rsc So to replace a dependency it's working as intended that the dependency must have a go.mod file? |
… must have go.mod files (golang/go#24110)
…41) * prune gorepoman from vendor folder * add go.mod file so hauser can be built with Go 1.11 with modules enabled * with Go modules, locally stored packages used in 'replace' directives must have go.mod files (golang/go#24110) * make travis CI run tests using Go modules
It seems unnecessary to have this requirement. In the issue I referenced, we're trying to use a dependency that has no go mod specifically to get go mod working. |
I think this might actually work as I expected, no go.mod file is required, I just had a typo on the left side of the |
What version of Go are you using (
go version
)?go version go1.10 linux/amd64 vgo:2018-02-20.1
What operating system and processor architecture are you using (
go env
)?linux
amd64
What did you do?
The root module,
github.com/leighmcculloch/today.bible
contains this go.mod file. None of its dependencies have a go.mod file.What did you expect to see?
What did you see instead?
Additional notes
vgo build
command works when the replace directive is not present.vgo build
command works if ago.mod
file is added to the version of4d63.com/biblepassagepi
that I'm referencing with the replace.The text was updated successfully, but these errors were encountered: