Lookup default permutation of app folder before literal name
@@ -104,12 +104,13 @@ func Extract(appname string) (string, func(), error) {
}
}
originalAppname := appname
- // try verbatim first
- s, err := os.Stat(appname)
- if err != nil {
+
// try appending our extension
appname = internal.DirNameFromAppName(appname)
- s, err = os.Stat(appname)
+ s, err := os.Stat(appname)
+ if err != nil {
+ // try verbatim
+ s, err = os.Stat(originalAppname)
}
if err != nil {
// look for a docker image
