File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ cleanup_gomod() {
28
28
return ;
29
29
fi
30
30
31
+ if [ ! -f ./function/go.mod ]; then
32
+ echo " module not initialized, skipping go.mod cleanup"
33
+ return ;
34
+ fi
35
+
31
36
echo " cleaning up go.mod"
32
37
33
38
# Copy the user's go.mod
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ cleanup_gomod() {
28
28
return ;
29
29
fi
30
30
31
+ if [ ! -f ./function/go.mod ]; then
32
+ echo " module not initialized, skipping go.mod cleanup"
33
+ return ;
34
+ fi
35
+
31
36
echo " cleaning up go.mod"
32
37
33
38
# Copy the user's go.mod
@@ -98,6 +103,11 @@ cleanup_vendor_modulestxt() {
98
103
return ;
99
104
fi
100
105
106
+ if [ -f ./function/go.mod ]; then
107
+ echo " module not initialized, skipping go.mod cleanup"
108
+ return ;
109
+ fi
110
+
101
111
echo " cleanup vendor/modules.txt"
102
112
103
113
# just in case
You can’t perform that action at this time.
0 commit comments