Commit Graph

133 Commits

Author SHA1 Message Date
Frank Schroeder f25632d6a1 build: drop 'consul' build tag for OSS build 2017-08-30 13:40:18 +02:00
Frank Schroeder 831d84c940 build: make tests independent of build tags
When the metadata server is scanning the agents for potential servers
it is parsing the version number which the agent provided when it
joined. This version number has to conform to a certain format, i.e.
'n.n.n'. Without this version number properly set some tests fail with
error messages that disguise the root cause.

The default version number is currently set to 'unknown' in
version/version.go which does not parse and triggers the tests to fail.
The work around is to use a build tag 'consul' which will use the
version number set in version_base.go instead which has the correct
format and is set to the current release version.

In addition, some parts of the code also require the version number to
be of a certain value. Setting it to '0.0.0' for example makes some
tests pass and others fail since they don't pass the semantic check.

When using go build/install/test one has to remember to use '-tags
consul' or tests will fail with non-obvious error messages.

Using build tags makes the build process more complex and error prone
since it prevents the use of the plain go toolchain and - at least in
its current form - introduces subtle build and test issues. We should
try to eliminate build tags for anything else but platform specific
code.

This patch removes all references to specific version numbers in the
code and tests and sets the default version to '9.9.9' which is
syntactically correct and passes the semantic check. This solves the
issue of running go build/install/test without tags for the OSS build.
2017-08-30 13:40:18 +02:00
James Phillips 6194dcf36f
Puts tree in 0.9.3 dev mode. 2017-08-09 18:33:57 -07:00
James Phillips c7c35331ed
Puts the tree in 0.9.2 release mode. 2017-08-09 17:36:35 -07:00
James Phillips d441381430
Puts tree into 0.9.2 dev mode. 2017-08-08 23:22:19 -07:00
James Phillips 90b955d65f
Puts the tree into 0.9.1 release mode. 2017-08-08 21:53:28 -07:00
James Phillips 9c459377e9
Puts the tree in 0.9.1 dev mode. 2017-07-19 20:57:10 -07:00
James Phillips 859ac937a8
Puts the tree in 0.9.0 release mode. 2017-07-19 19:55:49 -07:00
James Phillips 262e52dfb0
Bumps tree into 0.9.0-rc1 release mode. 2017-07-17 15:39:25 -07:00
James Phillips aa45338d9d
Puts the tree back in 0.9.0 dev mode. 2017-06-27 11:18:45 -07:00
James Phillips 555c7e912a
Puts tree into 0.8.5 release mode. 2017-06-27 09:25:38 -07:00
James Phillips 273b9f2a6f
Puts the tree in 0.8.5 dev mode. 2017-06-26 16:08:05 -07:00
James Phillips 7e4406e5b9
Puts the tree into 0.9.0 dev mode. 2017-06-09 08:27:15 -07:00
James Phillips d968d8b648
Puts the tree into 0.8.4. release mode. 2017-06-09 07:34:00 -07:00
James Phillips 698686d838
Puts the tree in version 0.8.4 dev mode. 2017-05-11 18:52:37 -07:00
James Phillips 785ff2796f
Puts tree into 0.8.3 development mode. 2017-05-09 07:41:56 -07:00
James Phillips bd686a2576
Puts tree into 0.8.2 release mode. 2017-05-09 06:58:29 -07:00
James Phillips 26b30b1606
Puts the tree in 0.8.2 dev mode. 2017-04-17 12:05:23 -07:00
James Phillips 647a3d2556
Puts the tree in 0.8.1 release mode. 2017-04-17 10:37:25 -07:00
James Phillips 10dee33e0a
Puts the tree back in dev mode. 2017-04-04 22:09:05 -07:00
James Phillips 23947700fa
Puts the tree into release mode. 2017-04-04 21:15:46 -07:00
James Phillips ade31f247a
Puts tree back in dev mode. 2017-03-27 18:44:22 -07:00
James Phillips 5d5c661e62
Puts the tree in -rc1 release mode. 2017-03-27 16:27:27 -07:00
James Phillips 97dbfb8b32
Points at new release and puts tree in 0.8.0 dev mode. 2017-02-06 11:08:30 -08:00
James Phillips 5c0a89ccf5
Puts the tree in 0.7.4 release mode. 2017-02-06 10:14:21 -08:00
James Phillips c1d3666ca6 Puts tree in 0.7.4 dev mode. 2017-01-26 09:14:18 -08:00
James Phillips cfd7c22f8a
Puts the tree in 0.7.3 release mode. 2017-01-26 08:23:46 -08:00
James Phillips c900966b8c
Puts the tree in 0.7.3 dev mode. 2016-12-19 11:45:15 -08:00
James Phillips af28466cf0
Puts the tree into 0.7.2 release mode. 2016-12-19 10:06:40 -08:00
James Phillips 1d5b15c74f
Puts tree in release mode for -rc1. 2016-12-15 08:21:39 -08:00
James Phillips 4420103045
Puts the tree into 0.7.2 dev mode. 2016-11-10 12:53:37 -08:00
James Phillips f9f56127a0
Puts the tree in release mode. 2016-11-10 11:20:53 -08:00
James Phillips 2a950f3897 Adds basic build tag support with different versions. (#2463) 2016-11-02 17:27:49 -07:00