Skip to content

Commit bef4589

Browse files
authored
Update instructions for building from source (#2504)
1 parent d105f54 commit bef4589

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,9 @@ In case there isn't an official package for your operating system or architectur
116116

117117
### Build from source
118118

119-
k6 is written in Go, so it's just a single statically-linked executable and very easy to build and distribute. To build from source you need **[Git](https://git-scm.com/downloads)** and **[Go](https://golang.org/doc/install)** (1.16 or newer). Follow these instructions:
119+
k6 is written in Go, so it's just a single statically-linked executable and very easy to build and distribute. To build from source you need **[Go](https://go.dev/doc/install)** (1.17 or newer). Follow these instructions:
120120

121-
- Run `go install go.k6.io/k6` which will:
122-
- git clone the repo and put the source in `$GOPATH/src/go.k6.io/k6`
123-
- build a `k6` binary and put it in `$GOPATH/bin`
121+
- Run `go install go.k6.io/k6@latest` which will build a `k6` binary and put it in the `$GOBIN` folder (which defaults to `$GOPATH/bin`).
124122
- Make sure you have `$GOPATH/bin` in your `PATH` (or copy the `k6` binary somewhere in your `PATH`), so you are able to run k6 from any location.
125123
- Tada, you can now run k6 using `k6 run script.js`
126124

0 commit comments

Comments
 (0)