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 option to configure the hashing algorithm used #5

Open
ericcornelissen opened this issue Feb 17, 2024 · 0 comments
Open

Add option to configure the hashing algorithm used #5

ericcornelissen opened this issue Feb 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ericcornelissen
Copy link
Collaborator

Summary

Currently ghasum supports only one hashing algorithm. This should be configurable by users so that alternatives can be used and migration to newer algorithms can be done gradually.

Proposal

  • The hashing algorithm to be used must be a CLI option on the ghasum init command.
  • The hashing algorithm must be upgradable for a project that already uses ghasum, e.g. with a command like ghasum upgrade1 or with a CLI flag on ghasum update.
  • The hashing algorithm used must be recorded in the gha.sum file so that the ghasum CLI knows which algorithm it should use for that project when verifying or updating.

Footnotes

  1. Note that the command ghasum upgrade is probably too generic and may want to be used for other purposes in the future (e.g. upgrade from one sumfile version to the next).

@ericcornelissen ericcornelissen added the enhancement New feature or request label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant