Skip to content

cli: No updates available for schema shouldn't be an error #317

@bukowa

Description

@bukowa

I am just setting up Makefile for building mod and I encounter this issue when up-to-date schema causes error.
I believe this is a mistake, and it should be just a warning.

// If we're up to date, nothing more is needed.
if analysis.0.is_up_to_date() {
// Reset the repo to his original state after the check
if current_branch_name != master_refname {
self.checkout_branch(&repo, &current_branch_name)?;
}
if stash_id.is_ok() {
let _ = repo.stash_pop(0, None);
}
Err(RLibError::GitErrorNoUpdatesAvailable(self.url.to_owned()))
}
// If we can do a fast-forward, we do it. This is the preferred option.

$ make init
cd ./contrib/rpfm && \
        rpfm_cli --game rome_2 schemas update --schema-path ./
17:28:13 [INFO] Logger initialized.
17:28:13 [INFO] Sentry Logging support enabled. Starting...
17:28:14 [ERROR] No updates available for the following git repository: https://github.com/Frodo45127/rpfm-schemas.
make: *** [init] Error 1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions