Skip to content

Commit

Permalink
fix: set workspace abs paths when rel paths are used
Browse files Browse the repository at this point in the history
  • Loading branch information
jahvon committed Sep 28, 2024
1 parent 7aa8465 commit d99081e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/internal/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ func createWorkspaceFunc(ctx *context.Context, cmd *cobra.Command, args []string
} else {
path = fmt.Sprintf("%s/%s", hd, path[2:])
}
case !filepath.IsAbs(path):
wd, err := os.Getwd()
if err != nil {
logger.FatalErr(err)
}
path = fmt.Sprintf("%s/%s", wd, path)
}

if !filesystem.WorkspaceConfigExists(path) {
Expand Down

0 comments on commit d99081e

Please sign in to comment.