blob: 29eb61db98c8c834b6142fa3704b663da34d80ef [file] [log] [blame] [view]
Jan Schära6864bb2025-06-18 11:58:23 +00001# Checking out and building
2
3## Stamping
4
5The Metropolis OS image is stamped with info from the current git commit (commit hash, commit date and dirty flag).
6This is useful when the image is deployed, as you know exactly which version is running in your cluster.
7Each time you make a commit or change the dirty state during development, the stamping info changes, forcing a rebuild of the OS image.
8This rebuild is quite cheap, since no binaries are rebuilt.
9However, it does invalidate cached test results for all end-to-end tests which depend on the OS image.
10If you prefer, you can disable stamping.
11
12To disable stamping, pass the `--config=nostamp` flag.
13Note that the builtin Bazel flag `--nostamp` does not work in this repo.
14To set this flag for all builds, create the file `.bazelrc.user` in the repository root with content `build --config=nostamp`.