Skip to content

Commit

Permalink
Adds possibility to set XK6_BUILD_FLAGS as an empty string to remove …
Browse files Browse the repository at this point in the history
…any build flags

Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>
  • Loading branch information
thgruiz and mstoykov committed Nov 3, 2022
1 parent 1d1a3f6 commit 8726549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ const (
)

func (b Builder) osEnvOrDefaultValue(name, defaultValue string) string {
s := os.Getenv(name)
if s == "" {
s, ok := os.LookupEnv(name)
if !ok {
return defaultValue
}
return s
Expand Down

0 comments on commit 8726549

Please sign in to comment.