diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-07-16 12:52:58 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-07-28 12:53:26 +0200 |
| commit | cf2cc87594e1d91779b36dca72d8dc7e34723132 (patch) | |
| tree | 97873e0b7d33032c16886fe0f7021dab38b9bfb0 /utils | |
| parent | 20a193f04c8da00de19993dd67a503d21ef87ac9 (diff) | |
[mod] create a Go project with the developer tools from Go
The `go.mod` was created by::
$ ./manage dev.env
(dev.env)$ go mod init searxng.org/devtools
(dev.env)$ go get -tool mvdan.cc/sh/v3/cmd/shfmt@v3.12.0
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/lib_govm.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/lib_govm.sh b/utils/lib_govm.sh index c74f4a65a..b25a120a9 100755 --- a/utils/lib_govm.sh +++ b/utils/lib_govm.sh @@ -117,8 +117,6 @@ go.vm.is_installed() { # shellcheck disable=SC2120 go.vm.install() { - python -m pip install -U requests - # Go versions manager; to install Go at arbitrary place: # # usage: go.vm.install <version> <dest> @@ -183,7 +181,7 @@ go.vm.list() { # Go versions manager; list Go versions (stable) - python <<EOF + "${PY_ENV_BIN}/python" <<EOF import sys, json, requests resp = requests.get("${_GO_DL_URL}/?mode=json&include=all") for ver in json.loads(resp.text): @@ -209,7 +207,7 @@ go.vm.version() { # os: [darwin|freebsd|linux|windows] # arch: [amd64|arm64|386|armv6l|ppc64le|s390x] - python - "$@" <<EOF + "${PY_ENV_BIN}/python" - "$@" <<EOF import sys, json, requests resp = requests.get("${_GO_DL_URL}/?mode=json&include=all") for ver in json.loads(resp.text): |