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