--- a/docker/export.go Mon Feb 19 15:34:29 2018 -0600
+++ b/docker/export.go Mon Feb 19 17:04:15 2018 -0600
@@ -55,11 +55,6 @@
// build out the source path
source := workSpace + ":" + filepath.Join("/workspace", src)
- // if we have an explict path we but the file directly in that directory
- dest = filepath.Join(e.Path, filepath.Base(dest))
@@ -90,7 +85,12 @@
- err = e.file(name, workSpace, match, tasks.DestFromSrc(match), st)
+ dest = tasks.DestFromSrc(match) + err = e.file(name, workSpace, match, dest, st) @@ -127,6 +127,10 @@
src, dest := tasks.ParseFilePath("", file)
// make sure the destination is in our build context
realDest, err := path.TraversesNonExistent(st.CfgPath, dest)