refactor: dedicated constants package, no explicit bridge version

This commit is contained in:
James Houlahan
2020-04-23 10:07:41 +02:00
committed by Jakub Cuth
parent 522cadb8b1
commit 0589f329e9
2 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
.PHONY: check-has-go install-godog test test-live test-debug test-live-debug
export GO111MODULE=on
export BRIDGE_VERSION:=dev-integrationtests
export VERBOSITY?=fatal
export TEST_DATA=testdata
export VERSION:=dev-integrationtests
check-has-go:
@which go || (echo "Install Go-lang!" && exit 1)

View File

@ -36,7 +36,7 @@ func init() { //nolint[gochecknoinits]
godog.BindFlags("godog.", flag.CommandLine, &opt)
// This would normally be done using ldflags but `godog` command doesn't support that.
constants.Version = os.Getenv("VERSION")
constants.Version = os.Getenv("BRIDGE_VERSION")
}
func TestMain(m *testing.M) {