File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,27 @@ and Mage automatically uses them as Makefile-like runnable targets.
13
13
Mage has no dependencies outside the Go standard library, and builds with Go 1.7
14
14
and above (possibly even lower versions, but they're not regularly tested).
15
15
16
- ** Using GOPATH**
16
+ ** Using GOPATH with go version < 1.17 **
17
17
18
18
```
19
19
go get -u -d github.com/magefile/mage
20
20
cd $GOPATH/src/github.com/magefile/mage
21
21
go run bootstrap.go
22
22
```
23
23
24
+ ** Using Go Install with go version >= 1.18**
25
+
26
+ ```
27
+ go install github.com/magefile/mage@latest
28
+ mage -init
29
+ ```
30
+
31
+ Instead of the @latest tag, you can specify the desired version, for example:
32
+
33
+ ```
34
+ go install github.com/magefile/[email protected]
35
+ ```
36
+
24
37
** Using Go Modules**
25
38
26
39
```
Original file line number Diff line number Diff line change @@ -14,14 +14,26 @@ and Mage automatically uses them as Makefile-like runnable targets.
14
14
Mage has no dependencies outside the Go standard library, and builds with Go 1.7
15
15
and above (possibly even lower versions, but they're not regularly tested).
16
16
17
- #### Using Go Modules (Recommended )
17
+ #### Using Go Modules (With go version < 1.17 )
18
18
19
19
``` plain
20
20
git clone https://github.com/magefile/mage
21
21
cd mage
22
22
go run bootstrap.go
23
23
```
24
24
25
+ #### Using Go Install (With go version >= [ 1.17] ( https://go.dev/doc/go-get-install-deprecation ) )
26
+
27
+ ``` plain
28
+ go install github.com/magefile/mage@latest
29
+ mage -init
30
+ ```
31
+ Instead of the @latest tag, you can specify the desired version, for example:
32
+
33
+ ``` plain
34
+ go install github.com/magefile/[email protected]
35
+ ```
36
+
25
37
#### Using GOPATH
26
38
27
39
``` plain
You can’t perform that action at this time.
0 commit comments