diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-09-10 15:41:47 -0700 |
---|---|---|
committer | Nicolas Lacasse <nlacasse@google.com> | 2019-09-10 15:41:47 -0700 |
commit | c1a8275b470fe0d8390cba166d4937059fd89b8b (patch) | |
tree | e4d40834098c5209d815fd8f0f4ffb9c0cf9f206 /tools/workspace_status.sh | |
parent | 849c57314f6b6f0d1ebcfa2e68762b8ea95f5948 (diff) |
Fix `runsc --version` and add a test.
We need to include the `--stamp` flag in `tools/workspace_status.sh` for
the version to be picked up by the linker. Not sure why.
Also changes the VERSION string to STABLE_VERSION, which will cause the
program to be re-linked if the string changes.
Fixes #830
Diffstat (limited to 'tools/workspace_status.sh')
-rwxr-xr-x | tools/workspace_status.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/workspace_status.sh b/tools/workspace_status.sh index 64a905fc9..6d961625e 100755 --- a/tools/workspace_status.sh +++ b/tools/workspace_status.sh @@ -14,4 +14,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -echo VERSION $(git describe --always --tags --abbrev=12 --dirty) +# The STABLE_ prefix will triger a re-link if it changes. +echo STABLE_VERSION $(git describe --always --tags --abbrev=12 --dirty) |