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

Switch to secretbase::siphash13() #1262

Merged
merged 13 commits into from
Apr 5, 2024
Merged

Switch to secretbase::siphash13() #1262

merged 13 commits into from
Apr 5, 2024

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented Apr 5, 2024

Prework

Related GitHub issues and pull requests

Summary

Invalidating changes

  • Use secretbase::siphash13() instead of digest(algo = "xxhash64", serializationVersion = 3) so hashes of in-memory objects no longer depend on serialization version 3 headers (Portability issue in hashes #1244, @shikokuchuo). Unfortunately, pipelines built with earlier versions of targets will need to rerun.

Other improvements

  • Inform and prompt the user when the pipeline was built with an old version of targets and changes to the package will cause the current work to rerun (Portability issue in hashes #1244). For the tar_make*() functions, utils::menu() prompts the user to give people a chance to downgrade if necessary.
  • For type safety in the internal database class, read all columns as character vectors in data.table::fread(), then convert them to the correct types afterwards.

@wlandau wlandau self-assigned this Apr 5, 2024
wlandau-lilly pushed a commit to ropensci/tarchetypes that referenced this pull request Apr 5, 2024
… the hashing functions from digest::digest() to secretbase::siphash13().
wlandau-lilly added a commit to ropensci/jagstargets that referenced this pull request Apr 5, 2024
… the hashing functions from digest::digest() to secretbase::siphash13().
wlandau-lilly added a commit to ropensci/stantargets that referenced this pull request Apr 5, 2024
… the hashing functions from digest::digest() to secretbase::siphash13().
@wlandau wlandau merged commit fd96c4e into main Apr 5, 2024
15 checks passed
@wlandau wlandau deleted the 1244 branch April 5, 2024 19:15
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