Skip to content

Commit b7b1e75

Browse files
committed
Fix install command not downloading to cache if provided
1 parent 568459f commit b7b1e75

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ installer uninstall
2020
installer install --repos pinitd,mabl
2121

2222
# Install from local download cache
23-
installer install --cache_dir cache
23+
installer install --cache-dir cache
2424

2525
# Install using a GitHub PAT for downloads
2626
installer install --github-token [SOME_PAT]
@@ -29,7 +29,7 @@ installer install --github-token [SOME_PAT]
2929
installer install --remote-auth-url [SOME_SIGNING_URL]
3030

3131
# Download to local cache
32-
installer download --cache_dir cache
32+
installer download --cache-dir cache
3333

3434
# Dump current logs to file
3535
installer dump-logs

src/engine.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,7 @@ impl InstallationEngine {
181181
let repo_temp_dir = self.temp_dir.join(&repo.name);
182182

183183
if !repo_temp_dir.exists() {
184-
return Err(InstallerError::Config(format!(
185-
"No cached assets found for repository '{}'. Run 'penumbra download' first.",
186-
repo.name
187-
)));
184+
self.download_repository_assets(repo).await?;
188185
}
189186
} else {
190187
self.download_repository_assets(repo).await?;

0 commit comments

Comments
 (0)