Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/runtime/depot.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ func (d *depot) Undeploy(id strfmt.UUID, relativeSrc, path string) error {

// Perform uninstall based on deployment type
if err := smartlink.UnlinkContents(filepath.Join(d.Path(id), relativeSrc), path); err != nil {
return errs.Wrap(err, "failed to unlink artifact")
if os.IsNotExist(err) {
logging.Warning("artifact no longer exists: %s", filepath.Join(d.Path(id), relativeSrc))
} else {
return errs.Wrap(err, "failed to unlink artifact")
}
}

// Re-link or re-copy any files provided by other artifacts.
Expand Down