Commit Graph

15 Commits

Author SHA1 Message Date
Qi Xiao
280834b32b PACKAGING.md: Fix language tags of code fences. 2022-04-09 21:30:09 +01:00
Qi Xiao
a993efc0e2 Restructure the instructions in PACKAGING.md. 2022-04-09 21:29:04 +01:00
Qi Xiao
cfcef9ec51 pkg/buildinfo: Use Go's buildinfo to derive version of development builds.
This allows the build commands in Makefile and tools/buildall.sh to be
simplified.

Official reproducible builds are now handled as a build variant, and the command
in Makefile no longer tries to produce reproducible builds.

Instructions in PACKAGING.md have been completely rewritten.
2022-04-02 18:18:24 +01:00
Shengjing Zhu
5724ec4c47 Fix typos and add codespell to CI 2021-08-22 23:07:34 +01:00
Qi Xiao
a34ba65794 PACKAGING.md: Clarify when VersionSuffix should be set. 2021-08-21 16:34:33 +01:00
Kurtis Rader
3ba0397c34 Add buildinfo and version vars
Introduce `builtin:buildinfo` and `builtin:version` vars. This also
changes the `-buildinfo -json` implementation to use the standard
encoding/json package rather than handcrafting the JSON string.

This also fixes three incorrect spellings of "overridden". Normally I would
do those in a separate change but since there are only three instances,
one of which one was legitimately part of this change, I decided to bundle
the other two.
2021-07-03 20:21:40 +01:00
Qi Xiao
f56f8a3083 PACKAGING.md: The guide applies to releases from 0.16.0, not 0.15.0 2021-01-31 02:32:04 +00:00
Qi Xiao
a407366060 Further restrict PIE to platforms that support it without requiring CGo. 2021-01-31 01:09:05 +00:00
Qi Xiao
be158bc0d3 Only build with -buildmode=pie on Linux on Windows.
Other platforms either don't support -buildmode=pie or require CGo.
2021-01-31 00:54:30 +00:00
Qi Xiao
ec68d73668 Require development builds to include the full commit hash. 2021-01-30 18:13:10 +00:00
Qi Xiao
57925dbee7 Run prettier on PACKAGING.md. 2021-01-29 01:26:36 +00:00
Qi Xiao
ea904e50fc
PACKAGING.md: Fix the value of VersionSuffix for dev build 2021-01-28 22:17:20 +00:00
Qi Xiao
3636e39179
Fix link in PACKAGING.md 2021-01-28 22:14:29 +00:00
Qi Xiao
29e949832c Add -buildinfo=pie to flags for reproducible builds. 2021-01-28 19:59:29 +00:00
Qi Xiao
91bdaaf629 Change how version information is overriden.
The mechanism is now documented in PACKAGING.md.

Also refactor tools/buildall.sh to make it easy to make reproducible builds, and
fix tools/cirrus-deploy.sh.
2021-01-28 14:41:34 +00:00