bake: fix BAKE_CMD_CONTEXT relative path resolution

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-05-25 13:58:52 +01:00
parent 76c96347ff
commit ef997fd6d0
2 changed files with 39 additions and 0 deletions

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