小编edd*_*ddd的帖子

运行 Go 程序时与垃圾收集器相关的恐慌

我从 GitHub 安装了一个 Go 程序,当我运行它时,出现错误,

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.18 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.18 set. Notably, if go1.18 adds a moving garbage collector, this program is unsafe to use.
Run Code Online (Sandbox Code Playgroud)

似乎没有太多与此相关的信息。我的 Go 编码经验为零。

任何帮助深表感谢。我很乐意提供您可能需要的任何额外信息。

PS:我安装的程序是metabinor,它是用go install github.com/j3ssie/metabigor@latest.

garbage-collection go

5
推荐指数
2
解决办法
5842
查看次数

标签 统计

garbage-collection ×1

go ×1