You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/pages/index.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,13 @@ gopkg.in/yaml.v2
46
46
... | OUT=example.exe sh
47
47
```
48
48
49
+
`CMD_PATH` - Path to the binary package (default: "")
50
+
51
+
```sh
52
+
# Export Windows executable
53
+
... | CMD_PATH="/cmd/example" sh
54
+
```
55
+
49
56
## Examples
50
57
51
58
Install the latest version:
@@ -72,11 +79,28 @@ Use alternative sources:
72
79
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/golang.org/x/tools/godoc | sh
73
80
```
74
81
82
+
Specify nested packages
83
+
84
+
> Note: nested package expect the path to be a `package main` file with a `main`
85
+
> call. If you use something like `spf13/cobra` then check the 2nd example.
86
+
87
+
```command
88
+
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/vito/bass/cmd/bass | sh
89
+
```
90
+
91
+
```command
92
+
curl -sf {{.Data.env.GOBLIN_ORIGIN_URL}}/gnorm.org/gnorm | CMD_PATH="/cli" PREFIX=./bin sh
93
+
```
94
+
75
95
## How does it work?
76
96
77
-
Each request resolves the needed tags and versions from [proxy.golang.org](https://proxy.golang.org). If no module is found, you can try replacing the version with a commit hash on supported platforms, e.g. GitHub.
97
+
Each request resolves the needed tags and versions from
98
+
[proxy.golang.org](https://proxy.golang.org). If no module is found, you can try
99
+
replacing the version with a commit hash on supported platforms, e.g. GitHub.
78
100
79
-
The response of this request is a Golang binary compiled for the requested operating system, architecture, package version, and the binary's name—using Go 1.17.x via the official [Docker image](https://hub.docker.com/_/golang).
101
+
The response of this request is a Golang binary compiled for the requested
102
+
operating system, architecture, package version, and the binary's name—using Go
103
+
1.17.x via the official [Docker image](https://hub.docker.com/_/golang).
0 commit comments