Skip to content

Pre-commit hooks #9

Open
Open
@ashvardanian

Description

@ashvardanian

In many cases, after we update the Cargo.toml, we may want to update the Cargo.lock. Similar procedures are common in JS and other ecosystems. So before committing the changes we should allow invoking some external script, similar to how the old CI worked for StringZilla, USearch, and SimSIMD.

# Update the version in the Cargo.lock file, but don't report an error if it fails...
# as `cargo` may not be available in the current environment.
cargo update || true

For that we should probably add a new argument & environment variable, that will contain the shell command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions