various: resolve multi-platform lookup; improve error messages
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iec6ee73639d0b42c96127db657575ab86a6a6964
This commit is contained in:
parent
0f8719eb52
commit
1079635cb9
5 changed files with 232 additions and 25 deletions
|
|
@ -702,7 +702,11 @@ fn execute_promote(projects: &[String]) -> Result<(), PakkerError> {
|
|||
})?;
|
||||
|
||||
// Load or create local lockfile
|
||||
let lockfile_path = config_dir.join("pakku-lock.json");
|
||||
let lockfile_path = if config_dir.join("pakker-lock.json").exists() {
|
||||
config_dir.join("pakker-lock.json")
|
||||
} else {
|
||||
config_dir.join("pakku-lock.json")
|
||||
};
|
||||
let mut local_lockfile = if lockfile_path.exists() {
|
||||
LockFile::load_with_validation(config_dir, false).map_err(|e| {
|
||||
PakkerError::Fork(format!("Failed to load local lockfile: {e}"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue