cos-kernel: Infer build number from build description

This adds functions to infer the build number from a build description
like "master", "cos-125", "main-R125", "beta", 19907.0.0, etc. This is
required for feature parity with cos_kernel_devenv.

BUG=b/527927014
TEST=presubmit

Change-Id: I061bf6c027e7a44230d7ff327ebc6015e1f09fe5
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/177846
Tested-by: Kevin Berry <kpberry@google.com>
Reviewed-by: Derek Taylor <ddtaylor@google.com>
Cloud-Build: 228075978874@cloudbuild.gserviceaccount.com <228075978874@cloudbuild.gserviceaccount.com>
4 files changed
tree: fa5318678e2dcc8934e6fa318691f9fd2da1f0e3
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. vendor/
  6. .bazelignore
  7. .gitignore
  8. BUILD.bazel
  9. cloudbuild.yaml
  10. CONTRIBUTING.md
  11. deps.bzl
  12. go.mod
  13. go.sum
  14. LICENSE
  15. postsubmit-cloudbuild.yaml
  16. README.md
  17. run_builds.sh
  18. run_unit_tests.sh
  19. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.