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

tar2rpm allow specifying a build time stamp via the cli #46

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

jarondl
Copy link
Collaborator

@jarondl jarondl commented Jul 14, 2020

Add a build_time flag which allows specifying the build timestamp for
people who like that.
To use the current time, you can use:
--build_time $(date +%s)

I strongly recommend not doing that, because it makes the build change
every time and hurt your caching and reproducibility, but people seem to
need this.

Also change the default timestamp to be empty to avoid the 2042 time.

Fixes #43

Each diff test had separate file. Most of them 1-liners. When reading
through the tests this requires another lookup to see "42" or "bash".

Now this is all integrated into BUILD.bazel
Add a build_time flag which allows specifying the build timestamp for
people who like that.
To use the current time, you can use:
` --build_time $(date +%s)`

I strongly recommend not doing that, because it makes the build change
every time and hurt your caching and reproducibility, but people seem to
need this.

Also change the default timestamp to be empty to avoid the 2042 time.

Fixes google#43
Copy link
Collaborator

@alexaguilera93 alexaguilera93 left a comment

Choose a reason for hiding this comment

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

Left a few nits but otherwise LGTM

@jarondl jarondl merged commit 11a45a6 into google:master Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tar2rpm: Build Date is far in the future
2 participants