We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a93006 commit 28fa931Copy full SHA for 28fa931
scripts/go_install.sh
@@ -37,19 +37,8 @@ if [ -z "${GOBIN}" ]; then
37
exit 1
38
fi
39
40
-tmp_dir=$(mktemp -d -t goinstall_XXXXXXXXXX)
41
-function clean {
42
- rm -rf "${tmp_dir}"
43
-}
44
-trap clean EXIT
45
-
46
rm "${GOBIN}/${2}"* || true
47
48
-cd "${tmp_dir}"
49
50
-# create a new module in the tmp directory
51
-go mod init fake/mod
52
53
# install the golang module specified as the first argument
54
go install -tags tools "${1}@${3}"
55
mv "${GOBIN}/${2}" "${GOBIN}/${2}-${3}"
0 commit comments