-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Bump go4.org/unsafe/assume-no-moving-gc for Go 1.21 support #1796
Conversation
Upgrades indirect dependancy for compatibility with upcoming Go 1.21: go4org/unsafe-assume-no-moving-gc@e7c30c7 It is required via (now archived) module inet.af/netaddr
Thanks @stefanb, I appreciate this! |
Thank you for fixing this! I bumped into it by installing gomplate via
Would it be possible to have a new tag released so |
Hmm... if you're installing |
@hairyhenderson I am installing v4, but the issue is that > go install github.com/hairyhenderson/gomplate/v4/cmd/gomplate@latest
go: downloading github.com/hairyhenderson/gomplate/v4 v4.0.0-pre-0
...
some more output...
... |
🤦♂️ I totally forgot |
Done: https://github.com/hairyhenderson/gomplate/releases/tag/v4.0.0-pre-1 - sorry for the confusion! |
Thank you very much! ❤️ |
@hairyhenderson I am currently using gomplate v3 and can confirm we just hit this after updating to go 1.21.1 go: downloading github.com/hairyhenderson/gomplate/v3 v3.11.5
...
panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the go1.21 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH="go1.21" set. Notably, if go1.21 adds a moving garbage collector, this program is unsafe to use. |
Upgrades indirect dependancy
go4.org/unsafe/assume-no-moving-gc
for compatibility with upcoming Go 1.21: go4org/unsafe-assume-no-moving-gc@e7c30c7Full upstream diff: go4org/unsafe-assume-no-moving-gc@c31fa08...e7c30c7
It is required via (now archived) module
inet.af/netaddr
that is used in some Deprecated functions of the public API.Problem noticed in Homebrew/homebrew-core#134468
Log: https://github.com/Homebrew/homebrew-core/actions/runs/5618619997/job/15224884480?pr=134468#step:3:9232
I was able to reproduce the error locally with Go 1.21rc3, but afrer bumping the go4.org/unsafe/assume-no-moving-gc the error went away.