Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stamping to .deb package version and description #708

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bozaro
Copy link

@bozaro bozaro commented Jun 5, 2023

Allow use stamping variables inside deb description.

@bozaro bozaro marked this pull request as ready for review June 5, 2023 12:31
Copy link
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the actual use case you have here. It does not seem to be time stamping, as the others do. There seems to be some general mechanism you are building to pull things from the info files to the build.
If that is the case, there has to be a documentation update about how to use that feature and the pitfalls of it.

@@ -107,6 +108,12 @@ def _pkg_deb_impl(ctx):
else:
fail("Neither description_file nor description attribute was specified")

# Files for stamping variables
if ctx.attr.private_stamp_detect:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should follow the logic of what the others do. Where there is a stamp parameter which can be 1, 0, or -1, and we only use the stamp dectect if -1.

if ctx.attr.private_stamp_detect:
args += ["--stamp=@" + ctx.version_file.path]
args += ["--stamp=@" + ctx.info_file.path]
files += [ctx.version_file, ctx.info_file]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the info file?

@aiuto aiuto added the P3 An issue that we are not working on but will review quarterly label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 An issue that we are not working on but will review quarterly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants