Skip to content

Commit

Permalink
update k6build v0.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Dec 13, 2024
1 parent d7721d7 commit 47a7869
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,16 @@ func newLocalBuildService(ctx context.Context, opts *Options) (k6build.BuildServ
return nil, err
}

conf := local.BuildServiceConfig{
BuildEnv: map[string]string{"GOWORK": "off"},
Catalog: catfile,
CopyGoEnv: true,
StoreDir: filepath.Join(cachedir, "build"),
Verbose: slog.Default().Enabled(ctx, slog.LevelDebug),
conf := local.Config{
Opts: local.Opts{
GoOpts: local.GoOpts{
Env: map[string]string{"GOWORK": "off"},
CopyGoEnv: true,
},
Verbose: slog.Default().Enabled(ctx, slog.LevelDebug),
},
Catalog: catfile,
StoreDir: filepath.Join(cachedir, "build"),
}

return local.NewBuildService(ctx, conf)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.4
require (
github.com/adrg/xdg v0.5.3
github.com/grafana/clireadme v0.1.0
github.com/grafana/k6build v0.4.1
github.com/grafana/k6build v0.5.0
github.com/grafana/k6deps v0.1.8
github.com/grafana/k6pack v0.2.3
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/grafana/clireadme v0.1.0 h1:KYEYSnYdSzmHf3bufaK6fQZ5j4dzvM/T+G6Ba+qNnAM=
github.com/grafana/clireadme v0.1.0/go.mod h1:Wy4KIG2ZBGMYAYyF9l7qAy+yoJVasqk/txsRgoRI3gc=
github.com/grafana/k6build v0.4.1 h1:hxQjV4BU/ahGuwhoQtNtDRSXxttXiwtBd4QkrfXnpsw=
github.com/grafana/k6build v0.4.1/go.mod h1:Ro2Upb8nsMhFTRfHfxByoHCT6vDcv48DtQ65wKdF0KY=
github.com/grafana/k6build v0.5.0 h1:eeq+vcvRbA/DeoRYLhKLXbgESITBh0uyTXYhAjlQ9Bc=
github.com/grafana/k6build v0.5.0/go.mod h1:ATaInvRPNPmM+M6CAgprPBFCIZkn6c2GA8s2KPurbEM=
github.com/grafana/k6catalog v0.2.4 h1:P5wdlqz2APGZhe6qinwQCZXe+z/Rm65VQ7zP/djb4Ng=
github.com/grafana/k6catalog v0.2.4/go.mod h1:nYzfIw6c3o1CEN1YlbUAkqtzIK2hoNWYF0lfYOk+RPg=
github.com/grafana/k6deps v0.1.8 h1:8ZrkAQR8aWQlYPoRlEqbWVHghhGpSHtOQ42fBL++cmo=
Expand Down

0 comments on commit 47a7869

Please sign in to comment.