grim/convey

Parents 900f3af1f02e
Children 8c645093c2e3
update convey/clean to use the Runtime.ConfigPath instead of the working directory.

Fixes CONVEY-189
--- a/tasks/clean.go Fri Oct 15 23:56:14 2021 -0500
+++ b/tasks/clean.go Sat Oct 16 00:14:19 2021 -0500
@@ -73,11 +73,6 @@
fullEnv.Merge(env)
fullEnv.Merge(rt.Environment)
- wd, err := os.Getwd()
- if err != nil {
- return err
- }
-
for _, pattern := range c.Files {
expandedPattern := fullEnv.Expand(pattern)
if expandedPattern == "" {
@@ -96,7 +91,7 @@
}
for _, path := range matches {
- sanitized, err := sanitizeFile(wd, path, fullEnv)
+ sanitized, err := sanitizeFile(rt.ConfigPath, path, fullEnv)
if err != nil {
return err
}