summaryrefslogtreecommitdiff
path: root/utils/lib_govm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lib_govm.sh')
-rwxr-xr-xutils/lib_govm.sh6
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):