我从 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.
似乎没有太多与此相关的信息。我在 Go 中编码的经验为零。
任何帮助深表感谢。我很乐意提供您可能需要的任何额外信息。
PS:我安装的程序是metabinor,它是用go install github.com/j3ssie/metabigor@latest
.
你还可以升级assume-no-moving-gc
通过使用go get -u go4.org/unsafe/assume-no-moving-gc
来解决这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)