Note that cmd/dist and (I think) some parts of cmd/compile and cmd/link need to remain buildable with Go 1.4 for bootstraping. Thus, these cannot use features newer than Go 1.4. Also see src/cmd/dist/README.
However, #44505 proposes to adopt Go 1.16 as the bootstrap toolchain for Go 1.18. That proposal was accepted, so we’ll probably be able to replace io/ioutil there as well for Go 1.18.
https://github.com/golang/go/issues/45557
https://golang.design/under-the-hood/zh-cn/part3tools/ch11compile/bootstrap/
https://www.oschina.net/news/58619/go-1-5-bootstrap-plan
https://studygolang.com/articles/7352
https://blog.csdn.net/beyond__devil/article/details/68064202
原文链接: https://dashen.tech/2010/03/15/Go语言的自举/
版权声明: 转载请注明出处.