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

Fix lockfiles never detecting changes #1396

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Conversation

nalind
Copy link
Member

@nalind nalind commented Oct 18, 2022

If we ever check the last-writer of a lock file and get back a zero value, don't only check if subsequent last-writer values match its first zero bytes, which is always true, as a test to see if the last-writer value has remained unchanged.

Related: containers/podman#16211

If we ever check the last-writer of a lock file and get back a zero
value, don't only check if subsequent last-writer values match its first
zero bytes, which is always true, as a test to see if the last-writer
value has remained unchanged.

Signed-off-by: Nalin Dahyabhai <[email protected]>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM.

Do we need a test for the expected behavior of Modified (both triggering once, per this PR, and not triggering afterwards, per #1391) on a fresh lock?

@rhatdan
Copy link
Member

rhatdan commented Oct 18, 2022

LGTM

@rhatdan rhatdan merged commit 77f301d into containers:main Oct 18, 2022
@nalind nalind deleted the tweak-1391 branch October 18, 2022 19:17
nalind added a commit to nalind/storage that referenced this pull request Oct 18, 2022
Test changes introduced in containers#1396.

Signed-off-by: Nalin Dahyabhai <[email protected]>
nalind added a commit to nalind/storage that referenced this pull request Oct 18, 2022
Test changes introduced in containers#1396.

Signed-off-by: Nalin Dahyabhai <[email protected]>
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