From ab218db2d992ac9f96e12b32b866b844fddcdd2e Mon Sep 17 00:00:00 2001 From: Pablo Chacin Date: Fri, 13 Dec 2024 18:31:28 +0100 Subject: [PATCH] update k6build v0.5.0 Signed-off-by: Pablo Chacin --- build.go | 12 ++++++++---- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/build.go b/build.go index 537147a..8cf07af 100644 --- a/build.go +++ b/build.go @@ -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"}, + 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, - CopyGoEnv: true, StoreDir: filepath.Join(cachedir, "build"), - Verbose: slog.Default().Enabled(ctx, slog.LevelDebug), } return local.NewBuildService(ctx, conf) diff --git a/go.mod b/go.mod index bf92824..faa31d3 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 8276f1b..666ffbb 100644 --- a/go.sum +++ b/go.sum @@ -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=