Commit Graph

10 Commits

Author SHA1 Message Date
James Phillips 5ba517b187
Puts the tree in 1.0.0-beta2 release mode. 2017-10-04 23:00:06 -07:00
James Phillips 6923ff97ef
Puts the tree in 1.0.0-beta1 release mode. 2017-09-27 16:20:48 -07:00
James Phillips 687da35244
Tweaks some versions around 1.0.0. 2017-09-25 13:47:45 -07:00
James Phillips f51b8d291b
Puts tree in 0.9.4 dev mode. 2017-09-08 11:13:20 -07:00
James Phillips 9a4ed967c1
Puts the tree in 0.9.3 release mode. 2017-09-08 09:34:55 -07:00
James Phillips f6ba414480
Puts the tree into 0.9.3-rc2 release mode. 2017-09-06 13:45:28 -07:00
James Phillips fb8dd4ab58
Puts the tree in 0.9.3-rc1 release mode. 2017-09-05 10:49:10 -07:00
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 9003454f88 Adds basic build tag support with different versions. (#2463) 2016-11-02 17:27:49 -07:00
Renamed from version.go (Browse further)