Commit graph

133 commits

Author SHA1 Message Date
Frank Schroeder a11f3bb52b build: drop 'consul' build tag for OSS build 2017-08-30 13:40:18 +02:00
Frank Schroeder 62c77d70f0 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 b967ff2fbb
Puts tree in 0.9.3 dev mode. 2017-08-09 18:33:57 -07:00
James Phillips 00986f8b43
Puts the tree in 0.9.2 release mode. 2017-08-09 17:36:35 -07:00
James Phillips 0f0304f464
Puts tree into 0.9.2 dev mode. 2017-08-08 23:22:19 -07:00
James Phillips 02c719ed20
Puts the tree into 0.9.1 release mode. 2017-08-08 21:53:28 -07:00
James Phillips a7842dc688
Puts the tree in 0.9.1 dev mode. 2017-07-19 20:57:10 -07:00
James Phillips b232a3dd48
Puts the tree in 0.9.0 release mode. 2017-07-19 19:55:49 -07:00
James Phillips bae863717c
Bumps tree into 0.9.0-rc1 release mode. 2017-07-17 15:39:25 -07:00
James Phillips 37d60fe11b
Puts the tree back in 0.9.0 dev mode. 2017-06-27 11:18:45 -07:00
James Phillips 0fc1c628fa
Puts tree into 0.8.5 release mode. 2017-06-27 09:25:38 -07:00
James Phillips 2a58b4603d
Puts the tree in 0.8.5 dev mode. 2017-06-26 16:08:05 -07:00
James Phillips 2f2131bab4
Puts the tree into 0.9.0 dev mode. 2017-06-09 08:27:15 -07:00
James Phillips 883d70651e
Puts the tree into 0.8.4. release mode. 2017-06-09 07:34:00 -07:00
James Phillips 6ca0f290a6
Puts the tree in version 0.8.4 dev mode. 2017-05-11 18:52:37 -07:00
James Phillips b80633765b
Puts tree into 0.8.3 development mode. 2017-05-09 07:41:56 -07:00
James Phillips 9c4d65c3da
Puts tree into 0.8.2 release mode. 2017-05-09 06:58:29 -07:00
James Phillips 2cf0f17e78
Puts the tree in 0.8.2 dev mode. 2017-04-17 12:05:23 -07:00
James Phillips 5d869f51d5
Puts the tree in 0.8.1 release mode. 2017-04-17 10:37:25 -07:00
James Phillips 4a576774a0
Puts the tree back in dev mode. 2017-04-04 22:09:05 -07:00
James Phillips 64ec4428be
Puts the tree into release mode. 2017-04-04 21:15:46 -07:00
James Phillips 3ba2453af0
Puts tree back in dev mode. 2017-03-27 18:44:22 -07:00
James Phillips 453763f207
Puts the tree in -rc1 release mode. 2017-03-27 16:27:27 -07:00
James Phillips fa65db8add
Points at new release and puts tree in 0.8.0 dev mode. 2017-02-06 11:08:30 -08:00
James Phillips 99e1217e54
Puts the tree in 0.7.4 release mode. 2017-02-06 10:14:21 -08:00
James Phillips 96fdfeb3c0 Puts tree in 0.7.4 dev mode. 2017-01-26 09:14:18 -08:00
James Phillips 7a75ec4dc5
Puts the tree in 0.7.3 release mode. 2017-01-26 08:23:46 -08:00
James Phillips e26158eaad
Puts the tree in 0.7.3 dev mode. 2016-12-19 11:45:15 -08:00
James Phillips e1c489b5a6
Puts the tree into 0.7.2 release mode. 2016-12-19 10:06:40 -08:00
James Phillips e541137264
Puts tree in release mode for -rc1. 2016-12-15 08:21:39 -08:00
James Phillips 59ebe3640a
Puts the tree into 0.7.2 dev mode. 2016-11-10 12:53:37 -08:00
James Phillips f131506401
Puts the tree in release mode. 2016-11-10 11:20:53 -08:00
James Phillips 9003454f88 Adds basic build tag support with different versions. (#2463) 2016-11-02 17:27:49 -07:00