Skip to content

Commit

Permalink
Reset group / mode / etc. on a pre-existing store
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Nov 15, 2024
1 parent f780110 commit 10975cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/action/common/provision_nix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,21 @@ impl Action for ProvisionNix {
fetch_nix,
create_nix_tree,
move_unpacked_nix,
nix_store_gid: _, // TODO @grahamc ... have a description, I guess
nix_store_gid, // TODO @grahamc ... have a description, I guess
} = &self;

let mut buf = Vec::default();
buf.append(&mut fetch_nix.describe_execute());

if std::path::Path::new(NIX_STORE_LOCATION).exists() {
buf.push(ActionDescription::new(
"Synchronize /nix/store ownership".to_string(),
vec![format!(
"Will update existing files in the Nix Store to use the Nix build group ID {nix_store_gid}"
)],
));
}

buf.append(&mut create_nix_tree.describe_execute());
buf.append(&mut move_unpacked_nix.describe_execute());

Expand Down

0 comments on commit 10975cf

Please sign in to comment.