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, ¤t_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
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.
rpfm/rpfm_lib/src/integrations/git.rs
Lines 201 to 215 in e1fa95b