[mod] add Golang ecosystem to the SearXNG toolchain

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2025-07-13 14:29:12 +02:00
committed by Markus Heiser
parent ae0fcf3a42
commit 20a193f04c
5 changed files with 250 additions and 216 deletions

23
manage
View File

@@ -32,8 +32,8 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_sxng_themes.sh"
# shellcheck source=utils/lib_sxng_test.sh
source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_sxng_test.sh"
# shellcheck source=utils/lib_go.sh
source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_go.sh"
# shellcheck source=utils/lib_govm.sh
source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_govm.sh"
# shellcheck source=utils/lib_valkey.sh
source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_valkey.sh"
@@ -41,7 +41,8 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_valkey.sh"
# shellcheck source=utils/lib_sxng_vite.sh
source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_sxng_vite.sh"
PATH="${REPO_ROOT}/node_modules/.bin:${PATH}"
# add ./local dev tools from python (virtualenv), golang and nodejs
PATH="${PY_ENV}/bin:${REPO_ROOT}/node_modules/.bin:${GOROOT}/bin:${GOPATH}/bin:${PATH}"
# config
@@ -100,11 +101,27 @@ EOF
static.help
vite.help
cat <<EOF
dev.:
env: enter developer environment (or exec a command in)
environment ...
SEARXNG_VALKEY_URL : ${SEARXNG_VALKEY_URL}
EOF
}
dev.env() {
go.env.dev
node.env.dev
export GOENV
if [ -z "$1" ]; then
export PS1="(dev.env)$ "
bash --norc --noprofile
else
"$@"
fi
}
if [ "$VERBOSE" = "1" ]; then
SPHINX_VERBOSE="-v"