mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[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>
This commit is contained in:
committed by
Markus Heiser
parent
20a193f04c
commit
cf2cc87594
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user