Go install: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * <tt>go</tt> tool =Overview=")
 
Line 2: Line 2:
* [[Go_Tool#install|<tt>go</tt> tool]]
* [[Go_Tool#install|<tt>go</tt> tool]]
=Overview=
=Overview=
<code>go install</code> is similar to <code>[[go build#Overview|go build]]</code> except that is saves the compiled code in form of [[Go_Language#Object_File|object files]] and possibly binary executables, locally for each packages instead of discarding it. The shared flags describe here apply: {{Internal|Go_Tool_Shared_Flags#Overview|Shared Flags}}
<code>go install</code> is used for building and publishing [[Go_Packages#Publishing_Packages|packages]] and [[Go_Modules#Publishing_Modules|modules]].
<font color=darkkhaki>If executed from a git workarea, there is underlying git interaction.</font>

Revision as of 00:47, 3 October 2023

Internal

Overview

go install is similar to go build except that is saves the compiled code in form of object files and possibly binary executables, locally for each packages instead of discarding it. The shared flags describe here apply:

Shared Flags

go install is used for building and publishing packages and modules.

If executed from a git workarea, there is underlying git interaction.