From b45d325b8e1821b12f5b25c9e3c98a0e2f08b84f Mon Sep 17 00:00:00 2001 From: ryoshindo Date: Wed, 29 Jun 2022 22:00:03 +0900 Subject: [PATCH 1/2] fix: library usage sample in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 535e019..1b8e5fd 100644 --- a/README.md +++ b/README.md @@ -110,11 +110,11 @@ The race detector can be enabled by setting `XK6_RACE_DETECTOR=1`. ```go builder := xk6.Builder{ - k6Version: "v0.35.0", + K6Version: "v0.35.0", Extensions: []xk6.Dependency{ { - ModulePath: "github.com/grafana/xk6-browser", - Version: "v0.1.1", + PackagePath: "github.com/grafana/xk6-browser", + Version: "v0.1.1", }, }, } From 504e5b681b62a2a501254974636893400a5c015e Mon Sep 17 00:00:00 2001 From: ryoshindo Date: Wed, 29 Jun 2022 22:12:38 +0900 Subject: [PATCH 2/2] fix: PackagePath json field name --- builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.go b/builder.go index f7e05cf..e818ac9 100644 --- a/builder.go +++ b/builder.go @@ -139,7 +139,7 @@ type Dependency struct { // The name (import path) of the Go package. If at a version > 1, // it should contain semantic import version (i.e. "/v2"). // Used with `go get`. - PackagePath string `json:"module_path,omitempty"` + PackagePath string `json:"package_path,omitempty"` // The version of the Go module, as used with `go get`. Version string `json:"version,omitempty"`