Skip to content

warn when lockfile hash does not match installed package hash#751

Merged
karawoo merged 2 commits intomainfrom
publisher-restore
Mar 11, 2026
Merged

warn when lockfile hash does not match installed package hash#751
karawoo merged 2 commits intomainfrom
publisher-restore

Conversation

@karawoo
Copy link
Copy Markdown
Contributor

@karawoo karawoo commented Mar 10, 2026

fixes #750

karawoo added 2 commits March 10, 2026 16:33
otherwise it leaks to my test of the hash mismatch warning, causing it to fail
when run twice in the same R session
Copy link
Copy Markdown
Contributor

@jonkeane jonkeane left a comment

Choose a reason for hiding this comment

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

Thanks for this!

Comment on lines +785 to +787
"(Package, Version, Depends, Imports, Suggests, LinkingTo, and ",
"Remote fields such as GithubSHA1, RemoteType, RemoteHost, ",
"RemoteRepo, RemoteUsername, RemoteRef, RemoteSha, RemoteSubdir) ",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm ok to leave this here since it's simpler, though it's a little fragile cause we'll need to update this if the fields change. But that's a pretty low likelihood event anyway?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah I think it's ok and that DRYing it up would just make the logic in hash() more complicated unnecessarily.

@karawoo karawoo merged commit 228b85d into main Mar 11, 2026
10 checks passed
@karawoo karawoo deleted the publisher-restore branch March 11, 2026 05:00
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.

Warn when lockfile hash does not match installed package hash

2 participants