From 094b89c7719455c63bb6e776a9ce5b4312a62f57 Mon Sep 17 00:00:00 2001 From: Fabio Forni Date: Fri, 15 Dec 2023 16:04:48 +0100 Subject: [PATCH] cli: Pass DryRun the same FS as the repo --- cli/install.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/install.go b/cli/install.go index 49b3be1..2756bf5 100644 --- a/cli/install.go +++ b/cli/install.go @@ -103,7 +103,9 @@ func (in *install) installer(rep repo.FS, fileList **os.File) installer.Installe writ := installer.StepWriter(stepwriter.OS{}) if in.DryRun { - writ = stepwriter.DryRun{} + writ = stepwriter.DryRun{ + FS: repo.NewOSFS(in.Directory), + } } opts := []installer.Option{ installer.WithCommonVars(envVars()),