You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/instruction-how-to-bump-repository.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,22 @@ VERSION_FILES=(
16
16
LIBRARY_FILES=(
17
17
go.mod
18
18
providers/go.mod
19
+
test/e2e/go.mod
19
20
)
20
21
```
21
22
2. Bump library versions.
22
23
```bash
23
24
sed -i s/v1.$MINOR_OLD.$PATCH_OLD/v1.$MINOR.$PATCH/ "${VERSION_FILES[@]}"
24
25
sed -i s/v0.$MINOR_OLD.$PATCH_OLD/v0.$MINOR.$PATCH/ "${LIBRARY_FILES[@]}"
25
-
go mod tidy
26
-
./tools/update_version.sh
26
+
sed -i s/v1.$MINOR_OLD.$PATCH_OLD/v1.$MINOR.$PATCH/ "${LIBRARY_FILES[@]}"
27
+
forgo_mod_filein"${LIBRARY_FILES[@]}";do
28
+
dir=$(dirname "$go_mod_file")
29
+
pushd$dir
30
+
echo"Tidying $dir"
31
+
go mod tidy
32
+
popd
33
+
done
34
+
./tools/update_vendor.sh
27
35
```
28
36
3. In [WORKSPACE](https://github.com/kubernetes/cloud-provider-gcp/blob/master/WORKSPACE), update `fetch_kube_release` sha to the desired release version.
29
37
* Note: The current Kubernetes release is using sha512 hash while cloud-provider-gcp is using sha256. Re-sha with command `sha256sum` if needed. Use this command to generate values automatically.
0 commit comments