diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.25k stars 40 forks source link

Builds built with go 1.20 panic because unsafe #112

Closed txtsd closed 1 year ago

txtsd commented 1 year ago
λ gtkcord4
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-gchasn't been updated to assert that it's safe against the go1.20 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20 set. Notably, if go1.20 adds a moving garbage collector, this program is unsafe to use.

goroutine 1 [running]:
go4.org/unsafe/assume-no-moving-gc.init.0()
    go4.org/unsafe/assume-no-moving-gc@v0.0.0-20220617031537-928513b29760/untested.go:25 +0x1ba
λ go version
go version go1.20 linux/amd64
diamondburned commented 1 year ago

Should be fixed in https://github.com/diamondburned/gtkcord4/commit/3ce0d24bc1493d498225b45e6c3baef8fa2b1c84.