Skip to content

Commit

Permalink
Treat dot replacement as CWD
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
Ivan Mirić committed Dec 1, 2020
1 parent d6b8119 commit 3a44174
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/xk6/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ func runBuild(ctx context.Context, args []string) error {
Version: ver,
})
if repl != "" {
if repl == "." {
if cwd, err := os.Getwd(); err != nil {
return err
} else {
repl = cwd
}
}
replacements = append(replacements, xk6.NewReplace(mod, repl))
}

Expand Down

0 comments on commit 3a44174

Please sign in to comment.