Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
malpani 9b0e9735f2
Track full git sha1 string instead of the short version (#9970)
* Retain full git sha1 instead of the short version

Signed-off-by: Ankit Malpani <malpani@stripe.com>

* Update test to indicate full buildGitRev

Signed-off-by: Ankit Malpani <malpani@stripe.com>

Co-authored-by: Ankit Malpani <malpani@stripe.com>
2022-03-29 12:39:20 -07:00
Guido Iaquinti 04c9f416e0
Docker - allow BUILD_NUMBER variable override
Signed-off-by: Guido Iaquinti <giaquinti@slack-corp.com>
2020-08-26 15:41:30 +02:00
hwdef 44d26bb206 update license
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-10-25 10:20:30 +08:00
Scott Lanning 60ed1bf8e9 added comment
suggested by Simon Mudd

Signed-off-by: Scott Lanning <scott.lanning@booking.com>
2018-12-13 13:05:59 +01:00
Scott Lanning 0f9cc1e690 fall back to environment variables when building without git
In our RPM build process, for whatever reason
it builds packages from a .git-less source.
This leads to the buildGit* variables not being set
and the corresponding BuildGit* in /debug/vars being empty.
We can export BUILD_GIT_* environment variables
during the build, though; this would fall back to those
in case the git commands come up empty.

Signed-off-by: Scott Lanning <scott.lanning@booking.com>
2018-12-13 13:05:59 +01:00
Anthony Yeh 147770fd81
Update scripts for new directory structure. 2018-02-27 12:39:30 -08:00
Ameet Kotian 695fd29ff8 Export BUILD_NUMBER in stats.
This is useful for exposing the build information (example:jenkins build number) in the stats
2017-10-10 09:27:14 -07:00
Michael Berlin 770fea2ece buildinfo: Include Git branch in --version output.
This makes it easier to find out where a binary may come from.

Before:

$ vtworker --version
Version: 34c5b80b4 built on Wed Jun 14 22:38:45 PDT 2017 by mberlin@hostname using go1.8 linux/amd64

After:

$ vtworker --version
Version: 30d07ef9a (Git branch 'version_output_fixes') built on Wed Jun 14 22:44:13 PDT 2017 by mberlin@hostname using go1.8 linux/amd64
2017-06-14 22:45:24 -07:00
Michael Berlin 30d07ef9a0 tools/build_version_flags.sh: Use shorter Git hashes.
This will make the --version more readable.

before:

$ vtworker --version
Version: 512ba51169 built on Wed Jun 14 22:30:38 PDT 2017 by mberlin@hostname using go1.8 linux/amd64

after:

$ vtworker --version
Version: 34c5b80b4 built on Wed Jun 14 22:38:45 PDT 2017 by mberlin@hostname using go1.8 linux/amd64
2017-06-14 22:39:33 -07:00
Michael Berlin 34c5b80b4e tools/build_version_flags.sh: Drop support for Go < 1.5.
Our code base requires Go 1.8 at this point.
2017-06-14 22:37:46 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Michael Berlin 8cbe2a01c7 bootstrap.sh: Restore Go 1.3 compability. 2015-08-06 14:51:46 -07:00
Anthony Yeh c66c0b81ed go1.5: Use new syntax for ldflags -X variables. 2015-07-31 13:40:44 -07:00