In Bazel, stamping is the process of embedding additional information into built
binaries, such as the source control revision or other workspace-related information.
Rules that support stamping typically include an integer stamp
attribute, where
1
means “always stamp”, 0
means “never stamp”, and -1
means “use the Bazel
build --stamp
flag. This blog post explains how to write a rule that supports
these values.