-
Notifications
You must be signed in to change notification settings - Fork 286
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
resolve version-control timestamp pseudo-version #922
Conversation
@wardn Thanks, but the previous value was not hand crafted by me, it was the result of a |
I can't imagine anyone handcrafting those! This is the first time I've seen that error on a dependency. |
Thanks @wardn btw what happens when trying with |
I can't reproduce this locally... might be a bug with Go modules |
The project I noticed the issue on has a dependency on a private repo (GOPRIVATE=...) so it breaks that aspect when I set GOPROXY. I'll try to set up a contrived project to play around with it. Looking at golang/sys@fde4db3, which is the commit referenced... it was committed "Mon Aug 12 10:24:04 2019", so even accounting for time zones, it's strange that it got an original timestamp of 20190726091711. |
So when I updated the go.mod, it looks like the rev was updated, but date was not: |
@wardn looks like the suggested workaround for this issue is to use https://tip.golang.org/doc/go1.13#version-validation so maybe something like?
|
All that being said, I am ok to merge the PR, will look at this a bit more. |
If I remove the entry from go.mod and then rebuild, I get the same "wrong" version/rev. So I instead put the rev for the latest commit from their repo and rebuilt and seem to be ok. Would you mind doing that (and a mod tidy and mod vendor) and update the PR? I have one ready if you prefer (and I would still reference you and this PR for proper credits). |
All good... I'm just glad to have it resolved. Thanks for looking into it! |
Related to PR #922 from @wardn Signed-off-by: Ivan Kozlovic <[email protected]>
go mod is reporting errors due to a pseudo-version timestamp discrepancy...
this commit reconciles the timestamp while maintaining the original commit target.