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
* add go-install arguments and env vars
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
* use slice for env var + create store dir if not exists
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
---------
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
| `name` | The name of the tool to install. This is used to determine the installation directory and the name of the binary. |
90
-
| `version.want` | The version of the tool to install. This can be a specific version, or a version range. |
91
-
| `version.constraint` | A constraint on the version of the tool to install. This is used to determine the latest version of the tool to update to. |
92
-
| `version.method` | The method to use to determine the latest version of the tool. See the [Version Resolver Methods](#version-resolver-methods) section for more details. |
93
-
| `version.with` | The configuration options for the version method. See the [Version Resolver Methods](#version-resolver-methods) section for more details. |
94
-
| `method` | The method to use to install the tool. See the [Install Methods](#install-methods) section for more details. |
95
-
| `with` | The configuration options for the install method. See the [Install Methods](#install-methods) section for more details. |
| `name` | The name of the tool to install. This is used to determine the installation directory and the name of the binary. |
90
+
| `version.want` | The version of the tool to install. This can be a specific version, or a version range. |
91
+
| `version.constraint` | A constraint on the version of the tool to install. This is used to determine the latest version of the tool to update to. |
92
+
| `version.method` | The method to use to determine the latest version of the tool. See the [Version Resolver Methods](#version-resolver-methods) section for more details. |
93
+
| `version.with` | The configuration options for the version method. See the [Version Resolver Methods](#version-resolver-methods) section for more details. |
94
+
| `method` | The method to use to install the tool. See the [Install Methods](#install-methods) section for more details. |
95
+
| `with` | The configuration options for the install method. See the [Install Methods](#install-methods) section for more details. |
96
96
97
97
98
98
### Install Methods
@@ -115,20 +115,22 @@ The default version resolver for this method is `github-release`.
115
115
116
116
The `go-install` install method uses `go install` to install a tool. It requires the following configuration options:
| `url` | The URL to the hosted shell script (e.g. `https://raw.githubusercontent.com/anchore/syft/main/install.sh`) |
153
+
| `args` (optional) | Arguments to pass to the shell script (as a single string) |
152
154
153
155
If the URL refers to either `github.com` or `raw.githubusercontent.com` then the default version resolver is `github-release`.
154
156
Otherwise, the version resolver must be specified manually.
@@ -208,9 +210,9 @@ is a version constraint used.
208
210
209
211
The `go-proxy` version method reaches out to `proxy.golang.org` to determine the latest version of a Go module. It requires the following configuration options:
0 commit comments