Go Application Versioning: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
=Internal= | =Internal= | ||
* [[Go_Engineering#Subjects|Go Engineering]] | * [[Go_Engineering#Subjects|Go Engineering]] | ||
=Overview= | |||
=Write an Authoritative Source of Version Information Script= | |||
The version information for a build should be generate in just one place. A shell script is probably the most versatile. Write a script that generate the version label at stdout and name it <code>${PROJECT_DIR}/scripts/get-version.sh</code>. | |||
=Pass the Version Information as a Linker Argument= | |||
<syntaxhighlight lang='make'> | |||
version = $(shell) | |||
</syntaxhighlight> |
Revision as of 23:07, 1 March 2024
External
Internal
Overview
Write an Authoritative Source of Version Information Script
The version information for a build should be generate in just one place. A shell script is probably the most versatile. Write a script that generate the version label at stdout and name it ${PROJECT_DIR}/scripts/get-version.sh
.
Pass the Version Information as a Linker Argument
version = $(shell)