Skip to content

Add sum calculation functionality to dev CLI setup subcommand#953

Open
r6915ee wants to merge 1 commit intoCodenameCrew:mainfrom
r6915ee:build/setup-sum
Open

Add sum calculation functionality to dev CLI setup subcommand#953
r6915ee wants to merge 1 commit intoCodenameCrew:mainfrom
r6915ee:build/setup-sum

Conversation

@r6915ee
Copy link
Copy Markdown
Contributor

@r6915ee r6915ee commented Apr 6, 2026

The dev CLI's setup subcommand has a new feature that allows it to calculate the sha256 hash of the current libraries file, storing it into an ignored .sum file. Without the new --ignore-sum flag, if the hash of the current file and the hash presented in the sum file are the same, then the setup process won't continue. The primary use case of this that I see is to avoid having to reinstall the libraries in the case of #952, where the script would always be run every time the development shell was entered.

From the commit message:

The subcommand uses this feature to compare the sha256 sums of the previous and current
building/libs.xml files in order to decide whether or not to initiate the setup
process. It adds an --ignore-sum flag to immediately pass the check used for this.

This also clears up the help message for the subcommand in question, updates both
setup- scripts to allow for variable arguments, and adds --all as an alias for
--reinstall.

The subcommand uses this feature to compare the sha256 sums of the
previous and current
building/libs.xml files in order to decide whether or not to initiate
the setup
process. It adds an `--ignore-sum` flag to immediately pass the check
used for this.

This also clears up the help message for the subcommand in question,
updates both
`setup-` scripts to allow for variable arguments, and adds `--all` as an
alias for
`--reinstall`.
@Raltyro
Copy link
Copy Markdown
Member

Raltyro commented Apr 7, 2026

.sum?

@r6915ee
Copy link
Copy Markdown
Contributor Author

r6915ee commented Apr 7, 2026

.sum?

Those files simply contain the last sha256 hash that was created from the libs.xml file and are purely local. The subcommand reads the last hash from this file and compares it to the respective hash of the current libs.xml file to check whether or not libs.xml was modified.

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.

2 participants