Skip to content

Commit

Permalink
Update package/src/bin/omicron-package.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Klein <sean@oxide.computer>
  • Loading branch information
steveklabnik and smklein committed Apr 6, 2023
1 parent d2d1510 commit ffc6c32
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions package/src/bin/omicron-package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,7 @@ async fn get_package(
PackageSource::Local { .. } | PackageSource::Composite { .. } => {
progress.set_message("bundle package".into());

let output_file = match package.output {
PackageOutput::Zone { .. } => {
output_directory.join(format!("{}.tar.gz", package_name))
}
PackageOutput::Tarball => {
package.get_output_path(package_name, output_directory)
}
};
let output_file = package.get_output_path(package_name, output_directory);

let cache = BUILD_CACHE.lock().unwrap();
let hash = cache.get(&output_file).map(ToOwned::to_owned);
Expand Down

0 comments on commit ffc6c32

Please sign in to comment.