[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:
Markus Heiser 2025-07-16 12:52:58 +02:00 committed by Markus Heiser
parent 20a193f04c
commit cf2cc87594
3 changed files with 38 additions and 4 deletions

14
go.mod Normal file
View file

@ -0,0 +1,14 @@
module searxng.org/devtools
go 1.24.5
tool mvdan.cc/sh/v3/cmd/shfmt
require (
github.com/google/renameio/v2 v2.0.0 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
mvdan.cc/editorconfig v0.3.0 // indirect
mvdan.cc/sh/v3 v3.12.0 // indirect
)

22
go.sum Normal file
View file

@ -0,0 +1,22 @@
github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI=
github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/renameio/v2 v2.0.0 h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg=
golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ=
golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU=
golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ=
mvdan.cc/editorconfig v0.3.0 h1:D1D2wLYEYGpawWT5SpM5pRivgEgXjtEXwC9MWhEY0gQ=
mvdan.cc/editorconfig v0.3.0/go.mod h1:NcJHuDtNOTEJ6251indKiWuzK6+VcrMuLzGMLKBFupQ=
mvdan.cc/sh/v3 v3.12.0 h1:ejKUR7ONP5bb+UGHGEG/k9V5+pRVIyD+LsZz7o8KHrI=
mvdan.cc/sh/v3 v3.12.0/go.mod h1:Se6Cj17eYSn+sNooLZiEUnNNmNxg0imoYlTu4CyaGyg=

View file

@ -117,8 +117,6 @@ go.vm.is_installed() {
# shellcheck disable=SC2120 # shellcheck disable=SC2120
go.vm.install() { go.vm.install() {
python -m pip install -U requests
# Go versions manager; to install Go at arbitrary place: # Go versions manager; to install Go at arbitrary place:
# #
# usage: go.vm.install <version> <dest> # usage: go.vm.install <version> <dest>
@ -183,7 +181,7 @@ go.vm.list() {
# Go versions manager; list Go versions (stable) # Go versions manager; list Go versions (stable)
python <<EOF "${PY_ENV_BIN}/python" <<EOF
import sys, json, requests import sys, json, requests
resp = requests.get("${_GO_DL_URL}/?mode=json&include=all") resp = requests.get("${_GO_DL_URL}/?mode=json&include=all")
for ver in json.loads(resp.text): for ver in json.loads(resp.text):
@ -209,7 +207,7 @@ go.vm.version() {
# os: [darwin|freebsd|linux|windows] # os: [darwin|freebsd|linux|windows]
# arch: [amd64|arm64|386|armv6l|ppc64le|s390x] # arch: [amd64|arm64|386|armv6l|ppc64le|s390x]
python - "$@" <<EOF "${PY_ENV_BIN}/python" - "$@" <<EOF
import sys, json, requests import sys, json, requests
resp = requests.get("${_GO_DL_URL}/?mode=json&include=all") resp = requests.get("${_GO_DL_URL}/?mode=json&include=all")
for ver in json.loads(resp.text): for ver in json.loads(resp.text):