Closed
Bug 1248578
Opened 10 years ago
Closed 8 years ago
taskcluster-proxy versioning improvements
Categories
(Taskcluster :: Workers, defect)
Taskcluster
Workers
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Unassigned)
References
Details
See bug 1234890 for details. Basically rather than bump the version number in the source on every release, we'd use `git describe` to get a version number from git, then inject that into the build process with `-X`.
Updated•10 years ago
|
Component: Generic-Worker → Worker
Whiteboard: [generic-worker]
Updated•9 years ago
|
Whiteboard: [generic-worker]
Comment 1•8 years ago
|
||
Done!
Status: NEW → RESOLVED
Closed: 8 years ago
QA Contact: pmoore
Resolution: --- → FIXED
Comment 2•8 years ago
|
||
$ taskcluster-proxy --version
2018/04/06 16:19:13 Version: Taskcluster proxy 4.0.1 (git revision 3b948348d887d196342cd49069231771408fb8e6)
Taskcluster proxy 4.0.1 (git revision 3b948348d887d196342cd49069231771408fb8e6)
Comment 3•8 years ago
|
||
Incidentally, latest version is newer, I rebuilt, and now get:
$ taskcluster-proxy --version
2018/04/06 17:24:04 Version: Taskcluster proxy 4.1.0 (git revision c541925d345bb0e27db20c63397b3cf7d4b4ceb1)
Taskcluster proxy 4.1.0 (git revision c541925d345bb0e27db20c63397b3cf7d4b4ceb1)
Comment 4•8 years ago
|
||
Note - taskcluster-proxy now has a build.sh script to build it with, which should be used to make sure to get the commit revision in the binary at link time. This script is used by the travis CI, so happens automatically for releases.
If a developer locally just runs `go build` or `go install` they won't get the revision number unless they specify the link options too - which is why we made a build.sh script to do this for them.
| Assignee | ||
Updated•7 years ago
|
Component: Worker → Workers
You need to log in
before you can comment on or make changes to this bug.
Description
•