bake: fix BAKE_CMD_CONTEXT relative path resolution

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-06-06 17:15:19 +02:00
parent 76c96347ff
commit ef997fd6d0
2 changed files with 39 additions and 0 deletions
+4
View File
@@ -1000,6 +1000,10 @@ func checkPath(p string) error {
}
return err
}
p, err = filepath.Abs(p)
if err != nil {
return err
}
wd, err := os.Getwd()
if err != nil {
return err