diff options
author | katre <jcater@google.com> | 2018-07-10 07:58:08 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-10 07:59:54 -0700 |
commit | f0ced483576200de9c0ef05c5b5831a5952bf8b8 (patch) | |
tree | 19eb7eb3ea7bca510415f699e8616128477a53aa /tools | |
parent | 3801bcebfe5fe0391be1c6ecc3ea011f54535ca0 (diff) |
Document differences between version and version_file
Add to the documentation that version_file and release_file cannot be used to generate an output with the N-V-R.A naming scheme.
Fixes #5522.
Closes #5555.
PiperOrigin-RevId: 203946762
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_defs/pkg/rpm.bzl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/build_defs/pkg/rpm.bzl b/tools/build_defs/pkg/rpm.bzl index f3e006429c..38f8b260ad 100644 --- a/tools/build_defs/pkg/rpm.bzl +++ b/tools/build_defs/pkg/rpm.bzl @@ -174,7 +174,10 @@ an RPM package based on the spec_file and data attributes. Two outputs are guaranteed to be produced: "%{name}.rpm", and "%{name}-%{architecture}.rpm". If the "version" and "release" arguments are non-empty, a third output will be produced, following the RPM-recommended -N-V-R.A format (Name-Version-Release.Architecture.rpm). +N-V-R.A format (Name-Version-Release.Architecture.rpm). Note that due to +the fact that rule implementations cannot access the contents of files, +the "version_file" and "release_file" arguments will not create an output +using N-V-R.A format. Args: spec_file: The RPM spec file to use. If the version or version_file |