Skip to content

Commit 41dbb8d

Browse files
committed
pass bridge to ksdeps
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
1 parent 45c6558 commit 41dbb8d

File tree

9 files changed

+80
-62
lines changed

9 files changed

+80
-62
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/golang/protobuf v1.5.4
2020
github.com/google/uuid v1.6.0
2121
github.com/gorilla/websocket v1.5.3
22-
github.com/grafana/k6deps v0.3.0
22+
github.com/grafana/k6deps v0.4.0
2323
github.com/grafana/k6provider v0.1.15
2424
github.com/grafana/sobek v0.0.0-20250320150027-203dc85b6d98
2525
github.com/grafana/xk6-dashboard v0.7.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN
8585
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
8686
github.com/grafana/k6build v0.5.11 h1:nuYV5DOMz5PEU8/XFRcDcfgzxUlLujeYNkU7NVEbdfc=
8787
github.com/grafana/k6build v0.5.11/go.mod h1:SA6/5cnnCLQ99IpFrqVfcuO+SxCRo/yLGtcnj3bfpII=
88-
github.com/grafana/k6deps v0.3.0 h1:jmI+miMW28hfteRhLvtzERbjJ1+JVK/b3V3spo3dghY=
89-
github.com/grafana/k6deps v0.3.0/go.mod h1:31pACKFJApQMMcu4hb4N3ti+Kz4s6PomUR63Y6S0bWM=
88+
github.com/grafana/k6deps v0.4.0 h1:YJ2xJyy3VM8/YWmCeX2vyoWzuq9dwdDTA5qCXIsnS0w=
89+
github.com/grafana/k6deps v0.4.0/go.mod h1:31pACKFJApQMMcu4hb4N3ti+Kz4s6PomUR63Y6S0bWM=
9090
github.com/grafana/k6foundry v0.4.6 h1:fFgR72Pw0dzo8wVWyggu35SGGjdt31Dktil1bDE1MCM=
9191
github.com/grafana/k6foundry v0.4.6/go.mod h1:eLsr0whhH+5Y1y7YpDxJi3Jv5wHMuf+80vdRyMH10pg=
9292
github.com/grafana/k6provider v0.1.15 h1:aUStpqDMEnEL9aGCcSKmpcreHRZsr8IELna+ttKMOYI=

internal/cmd/launcher.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"go.k6.io/k6/cloudapi"
1818
"go.k6.io/k6/cmd/state"
1919
"go.k6.io/k6/internal/build"
20+
"go.k6.io/k6/lib/fsext"
2021
)
2122

2223
// commandExecutor executes the requested k6 command line command.
@@ -307,7 +308,7 @@ func analyze(gs *state.GlobalState, args []string) (k6deps.Dependencies, error)
307308
}
308309
dopts.Script.Name = sourceRootPath
309310
dopts.Script.Contents = src.Data
310-
dopts.Fs = gs.FS
311+
dopts.Fs = fsext.NewIOFSBridge(gs.FS)
311312
}
312313

313314
return k6deps.Analyze(dopts)

vendor/github.com/grafana/k6deps/README.md

Lines changed: 16 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/grafana/k6deps/analyze.go

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/grafana/k6deps/dependencies.go

Lines changed: 24 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/grafana/k6deps/internal/rootfs/rootfs.go

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/grafana/k6deps/options.go

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ github.com/gorilla/websocket
184184
github.com/grafana/k6build
185185
github.com/grafana/k6build/pkg/api
186186
github.com/grafana/k6build/pkg/client
187-
# github.com/grafana/k6deps v0.3.0
187+
# github.com/grafana/k6deps v0.4.0
188188
## explicit; go 1.23.0
189189
github.com/grafana/k6deps
190190
github.com/grafana/k6deps/internal/pack

0 commit comments

Comments
 (0)