File tree 2 files changed +6
-14
lines changed 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 40
40
version : " 1.19.9"
41
41
42
42
- script : |
43
+ set -e
44
+ set -x
43
45
mkdir manifest
44
46
git config --global url.ssh://[email protected] /.insteadOf https://github.com/
45
47
chmod +x hack/ensure-kustomize.sh
Original file line number Diff line number Diff line change 12
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
-
15
+ set -x
16
+ set -e
16
17
set -o errexit
17
18
set -o nounset
18
19
set -o pipefail
@@ -37,20 +38,9 @@ if [ -z "${GOBIN}" ]; then
37
38
exit 1
38
39
fi
39
40
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
41
+ rm " ${GOBIN} /${2} " * 2> /dev/null || true
52
42
53
43
# install the golang module specified as the first argument
54
- go get -tags tools " ${1} @${3} "
44
+ go install -tags capztools " ${1} @${3} "
55
45
mv " ${GOBIN} /${2} " " ${GOBIN} /${2} -${3} "
56
46
ln -sf " ${GOBIN} /${2} -${3} " " ${GOBIN} /${2} "
You can’t perform that action at this time.
0 commit comments