various: resolve multi-platform lookup; improve error messages

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iec6ee73639d0b42c96127db657575ab86a6a6964
This commit is contained in:
raf 2026-04-21 23:35:09 +03:00
commit 1079635cb9
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 232 additions and 25 deletions

View file

@ -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}"))