forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dep-update.sh
executable file
·53 lines (46 loc) · 1.13 KB
/
dep-update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
set -ex
export GO111MODULE=on
export _sync_only="false"
while true; do
case "$1" in
-s | --sync-only)
_sync_only="true"
shift 1
;;
--)
shift
break
;;
*) break ;;
esac
done
(
echo $_sync_only
cd staging/src/kubevirt.io/api
if [ "${_sync_only}" == "false" ]; then go get $@ ./...; fi
# remove compat=1.17 when we move to go 1.18
go mod tidy -compat=1.17
)
(
echo $_sync_only
cd staging/src/kubevirt.io/client-go
if [ "${_sync_only}" == "false" ]; then go get $@ ./...; fi
# remove compat=1.17 when we move to go 1.18
go mod tidy -compat=1.17
)
(
cd staging/src/github.com/golang/glog
if [ "${_sync_only}" == "false" ]; then go get $@ ./...; fi
# remove compat=1.17 when we move to go 1.18
go mod tidy -compat=1.17
)
(
cd staging/src/kubevirt.io/client-go/examples/listvms
if [ "${_sync_only}" == "false" ]; then go get $@ ./...; fi
# remove compat=1.17 when we move to go 1.18
go mod tidy -compat=1.17
)
# remove compat=1.17 when we move to go 1.18
go mod tidy -compat=1.17
go mod vendor