wrong version number showing in admin
even though gitlab workhorse is checked out at v1.0.0 and VERSION contains 1.0.0, the compiled version is 0.8.5 (also shows 0.8.5 in gui admin)
root@golf:/home/git# sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-workhorse.git
Cloning into 'gitlab-workhorse'...
remote: Counting objects: 3378, done.
remote: Compressing objects: 100% (1224/1224), done.
remote: Total 3378 (delta 2021), reused 3291 (delta 1955)
Receiving objects: 100% (3378/3378), 4.40 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2021/2021), done.
root@golf:/home/git# cd gitlab-workhorse/
root@golf:/home/git/gitlab-workhorse# sudo -u git -H git checkout v1.0.0
Note: checking out 'v1.0.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at b598d29... Merge branch 'release-v1.0.0' into 'master'
root@golf:/home/git/gitlab-workhorse# sudo -u git -H make
rm -rf /home/git/gitlab-workhorse/_build
mkdir -p /home/git/gitlab-workhorse/_build/src/gitlab.com/gitlab-org/gitlab-workhorse
tar -cf - --exclude _build --exclude .git . | (cd /home/git/gitlab-workhorse/_build/src/gitlab.com/gitlab-org/gitlab-workhorse && tar -xf -)
touch /home/git/gitlab-workhorse/_build
go build -ldflags "-X main.Version=v0.8.5-9-gb598d29-20161124.144726" -o /home/git/gitlab-workhorse/gitlab-zip-cat gitlab.com/gitlab-org/gitlab-workhorse/cmd/gitlab-zip-cat
go build -ldflags "-X main.Version=v0.8.5-9-gb598d29-20161124.144726" -o /home/git/gitlab-workhorse/gitlab-zip-metadata gitlab.com/gitlab-org/gitlab-workhorse/cmd/gitlab-zip-metadata
go build -ldflags "-X main.Version=v0.8.5-9-gb598d29-20161124.144727" -o /home/git/gitlab-workhorse/gitlab-workhorse gitlab.com/gitlab-org/gitlab-workhorse