mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 16:25:19 +00:00
delta: trim path when computing src files set
The path contains an ending "/" which wouldn't match when we walk dst as it's not there. That had the unpleasant effect of creating empty folders in the destinations
This commit is contained in:
@@ -79,7 +79,7 @@ var _ = Describe("Delta", func() {
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
defer os.RemoveAll(tmpdir) // clean up
|
||||
|
||||
Expect(file.Exists(filepath.Join(tmpdir, "home"))).To(BeFalse())
|
||||
Expect(file.Exists(filepath.Join(tmpdir, "root", ".cache"))).To(BeTrue())
|
||||
Expect(file.Exists(filepath.Join(tmpdir, "bin", "sh"))).To(BeFalse())
|
||||
Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go"))).To(BeTrue())
|
||||
|
Reference in New Issue
Block a user