<hr/>**评论:**<br/><br/>farslan: <pre><p>If you mean the binaries and packages under /dl check this out: <a href="https://github.com/golang/build/tree/master/cmd/release" rel="nofollow">https://github.com/golang/build/tree/master/cmd/release</a> You see that it uses <code>pkgbuild</code> for creating the darwin installer for example. It's fairly easy if you follow it (I've created a more extensive pkg installer once based on this).</p></pre>lapingvino: <pre><p>Ah great :) the point mostly being that I managed to build go 1.5 with itself with the packaged release, but not with the one built from source... What am I missing there?</p></pre>DeedleFake: <pre><p>Do you mean that you set GOROOT_BOOTSTRAP to the root of the source tree you just built and then tried to rebuild it? That won't work; the tool binaries get deleted as part of the build process, making it kind of difficult for the bootstrap process to call them.</p></pre>lapingvino: <pre><p>so for the bootstrap, where and which tools should be there?</p></pre>DeedleFake: <pre><p>You'll need a seperate, existing, precompiled Go toolchain. You can get a precompiled toolchain from the <a href="http://www.golang.org/dl" rel="nofollow">Go download page</a>. Put it somewhere temporary, and then set <code>GOROOT_BOOTSTRAP</code> to it's path when you run <code>all.bash</code>. Once that's done, you can use the newly compiled toolchain instead, although a toolchain can't be used to compile itself. If you want to for some reason, you can just copy the <code>src</code>, <code>pkg</code>, and <code>bin</code> directories into a second directory, and then set <code>GOROOT_BOOTSTRAP</code> to that directory's path.</p></pre>: <pre><p>[deleted]</p></pre>pierrrre: <pre><p><a href="http://golang.org/dl/" rel="nofollow">http://golang.org/dl/</a> ?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传