Skip to content

Commit 3998736

Browse files
committed
Use filesystem path equality, not string equality.
1 parent ae23900 commit 3998736

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/runtime/depot.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ func (d *depot) Undeploy(id strfmt.UUID, relativeSrc, path string) error {
356356
if !ok {
357357
return errs.New("deployment for %s not found in depot", id)
358358
}
359-
deployments = sliceutils.Filter(deployments, func(d deployment) bool { return d.Path == path })
359+
deployments = sliceutils.Filter(deployments, func(d deployment) bool {
360+
equal, _ := fileutils.PathsEqual(d.Path, path)
361+
return equal
362+
})
360363
if len(deployments) != 1 {
361364
return errs.New("no deployment found for %s in depot", path)
362365
}

0 commit comments

Comments
 (0)