Skip to content

Commit 07fbd76

Browse files
authored
Merge pull request #2133 from CecileRobertMichon/cleanup-go-install
Cleanup go install script
2 parents 7f605d5 + 28fa931 commit 07fbd76

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

scripts/go_install.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,8 @@ if [ -z "${GOBIN}" ]; then
3737
exit 1
3838
fi
3939

40-
tmp_dir=$(mktemp -d -t goinstall_XXXXXXXXXX)
41-
function clean {
42-
rm -rf "${tmp_dir}"
43-
}
44-
trap clean EXIT
45-
4640
rm "${GOBIN}/${2}"* || true
4741

48-
cd "${tmp_dir}"
49-
50-
# create a new module in the tmp directory
51-
go mod init fake/mod
52-
5342
# install the golang module specified as the first argument
5443
go install -tags tools "${1}@${3}"
5544
mv "${GOBIN}/${2}" "${GOBIN}/${2}-${3}"

0 commit comments

Comments
 (0)