Closed Bug 1248578 Opened 10 years ago Closed 8 years ago

taskcluster-proxy versioning improvements

Categories

(Taskcluster :: Workers, defect)

defect
Not set
normal

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`.
See Also: → 1234890
Component: Generic-Worker → Worker
Whiteboard: [generic-worker]
Whiteboard: [generic-worker]
Done!
Status: NEW → RESOLVED
Closed: 8 years ago
QA Contact: pmoore
Resolution: --- → FIXED
$ 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)
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)
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.
Component: Worker → Workers
You need to log in before you can comment on or make changes to this bug.