Skip to content

Commit 5263958

Browse files
authored
fix: mage ui target trying to change to an invalid dir (#4481)
#### What type of PR is this? Fix broken mage target. #### What this PR does / why we need it: `mage ui` was reporting: ``` Error: chdir internal/lookoutui: no such file or directory ``` The yarnRun function in `magefiles/yarn.go` had an incorrect path - it was trying to return to the wrong directory level after changing into `internal/lookoutui` Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
1 parent 659dce0 commit 5263958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magefiles/yarn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func yarnRun(args ...string) error {
2020
return err
2121
}
2222

23-
if err := os.Chdir("../../.."); err != nil {
23+
if err := os.Chdir("../.."); err != nil {
2424
return err
2525
}
2626

0 commit comments

Comments
 (0)