cmd/go: go.mod with replace local folder does not pull latest files present on the disk #38206
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is the latest 1.13 release, did not test on 1.14.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm working locally on a fork of a library to test some changes, I added a replace block inside go.mod such as follow:
module gitlab.local/jlory/auth-test go 1.13 require gitlab.local/harbour/libs/ubiservices-go v1.1.0 replace gitlab.local/harbour/libs/ubiservices-go => /home/jlory/git/gitlab.local/jlory/ubiservices-go
When I build the project with go build I don't get the latest "replaced" files, by latest I mean I changed/saved the files inside
/home/jlory/git/gitlab.local/jlory/ubiservices-go
and when I run the binary that I just built it's not what it should be running, it's a previous version that is no longer on the disk.It's worth mentionning that I work inside VirtualBox ( might be some FS caching shenanigans).
What did you expect to see?
When I run
go build .
with a replace block targetting a local library I expect go build to pull the latest files on the filesystem.What did you see instead?
I see old code running that is no longer on the disk.
The text was updated successfully, but these errors were encountered: