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

Implement commits.json that tracks whether sources.json is potentially outdated #9

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

tianon
Copy link
Member

@tianon tianon commented Dec 14, 2023

#8 (comment)

A simpler option would be record in another file which commit of .doi and .scripts generated the committed sources.json so that if there's a new commit that results in no changes to sources.json, we still try generating it at least once, but then record that we did so such that we do not have to do so again. (In case the follow-up question to this is why not just use the submodule commits as this reference, I'm worried that updating submodule commits is something that's too easy to do accidentally, so I'd rather it be something explicitly generated and committed so it's a more clear signal of intent / state.)

…ially outdated

> A simpler option would be record in another file which commit of `.doi` and `.scripts` generated the committed `sources.json` so that if there's a new commit that results in no changes to `sources.json`, we still _try_ generating it at least once, but then record that we did so such that we do not have to do so again.  (In case the follow-up question to this is why not just use the submodule commits as this reference, I'm worried that updating submodule commits is something that's too easy to do accidentally, so I'd rather it be something explicitly generated and committed so it's a more clear signal of intent / state.)
Copy link
Collaborator

@whalelines whalelines left a comment

Choose a reason for hiding this comment

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

LGTM

@yosifkit yosifkit merged commit 21eba83 into docker-library:main Dec 15, 2023
1 check passed
@yosifkit yosifkit deleted the commits.json branch December 15, 2023 21:51
@tianon
Copy link
Member Author

tianon commented Dec 15, 2023

Confirmed working 💪

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.

3 participants