Commit Graph

68 Commits (3757cb6a96e66be6709bcc7156d4d65ebbd5306e)

Author SHA1 Message Date
James Phillips aa1f225e2d
Puts the tree into 1.0.3 release mode. 2018-01-24 06:53:21 -08:00
James Phillips 7a5ddc4112
Puts the tree in 1.0.3 dev mode. 2017-12-15 08:10:37 -08:00
James Phillips 36d6b19ebb
Puts the tree into 1.0.2 release mode. 2017-12-15 05:49:40 -08:00
James Phillips 59effe8a1a
Puts the tree into 1.0.2 dev mode. 2017-11-20 14:46:12 -08:00
James Phillips 649cb66725
Puts the tree into 1.0.1 release mode. 2017-11-20 13:55:07 -08:00
James Phillips 7d0167d314
Puts the tree into 1.0.1-rc1 release mode. 2017-11-10 14:36:20 -08:00
James Phillips d5a889c160
Puts the tree in 1.0.1 dev mode. 2017-10-16 10:28:06 -07:00
James Phillips 73481c6474
Puts the tree in 1.0 final release mode. 2017-10-16 09:16:52 -07:00
James Phillips 818a2de385
Puts the tree in 1.0.0-beta2 release mode. 2017-10-04 23:00:06 -07:00
James Phillips d4d25a69a2
Puts the tree in 1.0.0-beta1 release mode. 2017-09-27 16:20:48 -07:00
James Phillips 8bc8c25cfb
Tweaks some versions around 1.0.0. 2017-09-25 13:47:45 -07:00
James Phillips cc710aed39
Puts tree in 0.9.4 dev mode. 2017-09-08 11:13:20 -07:00
James Phillips 4c2e13e0df
Puts the tree in 0.9.3 release mode. 2017-09-08 09:34:55 -07:00
James Phillips 0034cc5098
Puts the tree into 0.9.3-rc2 release mode. 2017-09-06 13:45:28 -07:00
James Phillips e76eeadf13
Puts the tree in 0.9.3-rc1 release mode. 2017-09-05 10:49:10 -07:00
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 2a950f3897 Adds basic build tag support with different versions. (#2463) 2016-11-02 17:27:49 -07:00