-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: tip build failure on Windows when using Mercurial VCS #49841
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
Comments
cc @bcmills |
I've tested Mercurial with the buildvcs functionality from v6.0.1 (2021-11-26) back to v3 (2014-05-01). v2 breaks since
UPDATE: I'll send through a patch that removes the filter breaking compatibility. @ALTree Can you please change the title to reference Windows? (I can't edit it myself) |
Change https://golang.org/cl/380077 mentions this issue: |
Can the VCS tools be installed on the Windows builder? It would help catch this sort of incompatibility in future. |
They don't even have a working (Added a comment on #46693.) |
This is a release-blocker because build stamping is new as of Go 1.18 and we have a contributed fix CL anyway. Given the narrowness of the affected platform (Windows + |
Use "hgdate" since the strftime filter is unsupported by Mercurial under Windows. Fixes golang#49841 Change-Id: I300898e51e324147aaf1bfe12ed17dea4bdd183d Reviewed-on: https://go-review.googlesource.com/c/go/+/380077 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Jeremy Faller <jeremy@golang.org> Trust: Michael Knyszek <mknyszek@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat vcs version and extensions are you running?
hg version -v
OutputWhat did you do?
What did you expect to see?
A successful build
What did you see instead?
gotip build -v
Line 128 in
dateutil.pyo
is an attempt to parse a date format template. Working backwards into the Go code, the problem seems to be this line invcs.go
:Which I think is caused because "%s" isn't a recognised time format directive.
Changing the line to
corrects the issue on my system, but I'm not 100% sure that this is what the expected output for this function should be. Especially as I'm not even passing fluent in Python.
The text was updated successfully, but these errors were encountered: