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 UseGlobalModTime option to make application reproducible #93

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lunny
Copy link

@lunny lunny commented Jan 5, 2022

This PR adds a new option named UseGlobalModTime to not store file or dir time into the generated files so that application builds could be reproducible.

The default value of UseGlobalModTime is false. Then anything is not changed. When set UseGlobalModTime as true, a function named GlobalModTime(filename string) time.Time will be called from the generated files. So you could define that function in the same package of the generated files.

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.

1 participant