[go: up one dir, main page]

forc::ops::forc_update

Function update

Source
pub fn update(command: UpdateCommand) -> Result<()>
Expand description

Running forc update will check for updates for the entire dependency graph and commit new semver-compatible versions to the Forc.lock file. For git dependencies, the commit is updated to the HEAD of the specified branch, or remains unchanged in the case a tag is specified. Path dependencies remain unchanged as they are always sourced directly.

This is called during forc build in the case that there is no existing Forc.lock file for the project.

Run forc update --check to perform a dry-run and produce a list of updates that will be performed across all dependencies without actually committing them to the lock file.

Use the --package <package-name> flag to update only a specific package throughout the dependency graph.