Skip to content

Commit cf08f29

Browse files
committed
fix finding binaries in the PKGX_PANTRY_DIR
reported by Boom on discord update the db using the pantry dir, if set. this ensures newly developed binaries are usable (and local pantries).
1 parent d732ae4 commit cf08f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lib/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub async fn ensure(config: &Config, conn: &mut Connection) -> Result<(), Box<dy
3333

3434
pub async fn update(config: &Config, conn: &mut Connection) -> Result<(), Box<dyn Error>> {
3535
if std::env::var("PKGX_PANTRY_DIR").is_ok() {
36-
return Err("PKGX_PANTRY_DIR is set, refusing to update pantry")?;
36+
return ensure(config, conn).await;
3737
}
3838
replace(config, conn).await
3939
}

0 commit comments

Comments
 (0)