Update x/tools for go v1.25 compatibility.#383
Update x/tools for go v1.25 compatibility.#383kousu wants to merge 3 commits intogo-python:masterfrom
Conversation
1fae9ed to
4db5ec2
Compare
Also, *remove* `@latest` so `go install` respects the pins in go.mod. Also remove `stack: go 1.22` because that's apparently only for Linux [^1] and it's causing build problems. [^1]: appveyor/ci#3743 (comment)
4db5ec2 to
14b432d
Compare
|
To the maintainers: this fixes the build for me. But the 6-patch series starting at #382 has almost the same fix (go -> 1.22, x/tools -> 0.29) in patch 5, so if you want to pick one, pick theirs. I only leave this open in the hopes that if you are too busy to review 6 patches you can at least review this one and get gopy working again on modern systems. In fact to get the build to pass I had to cherry-pick in b-long#6 aka #379 so it really seems better to defer to those. |
| PATH: '%GOPATH%\bin;%GOROOT%\bin;%CPYTHON3DIR%;%CPYTHON3DIR%\\Scripts;C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%' | ||
|
|
||
| stack: go 1.21 | ||
| PATH: 'C:\go122\bin;%USERPROFILE%\go\bin;%CPYTHON3DIR%;%CPYTHON3DIR%\\Scripts;C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%' |
There was a problem hiding this comment.
Appveyor doesn't seem to respect envs set, see e.g. this run, that's why the path to go is hardcoded.
I wonder therefore if the python paths are also wrong. But the build is passing and I don't want this patch to be a complete overhaul (b-long already did that)
Wraps 'typedef uint8_t bool;' with preprocessor guards to avoid conflicts with C23's native bool type. This fixes compilation errors with newer C compilers that default to C23 standard. Based on go-python#379 by @deuill. Co-Authored-By: Marid de Uill <maridlcueto@gmail.com>
|
Struggling with appveyor. I don't know it and CI is always hard. I might just let this lie because deuill and b-long have already done the maintenance. I hope you accept their work 🙏 |
I can't build gopy, unfortunately. There is some bug in the old version of x/tools that gopy is pinned to that go got stricter about between 1.24 and 1.26. Apparently in v1.25
It means I can't use it:
This patch conservatively updates x/tools is the oldest version of x/tools that fixes the build, found by bisection:
Bisection Log
Then I redid it to make sure not to overshoot in the go version bump.
I hope it finds you well and that you will consider it so that I can use your project (actually I'm trying to use https://slidge.im/ and you're a key strut holding that project up).