Skip to content

Commit 97b8084

Browse files
authored
doc: update SHA512 of googleapis for vcpkg release (#15032)
1 parent 1f27456 commit 97b8084

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

release/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,22 @@ In `ports/google-cloud-cpp/vcpkg.json`
260260
./vcpkg format-manifest ports/google-cloud-cpp/vcpkg.json
261261
```
262262

263-
#### Update the [SHA512]
263+
#### Update the [SHA512] of google-cloud-cpp repo
264264

265265
```shell
266266
SHA512=($(curl -fSsL https://github.com/googleapis/google-cloud-cpp/archive/${VERSION}.tar.gz | sha512sum))
267-
sed -i "s/SHA512 .*/SHA512 ${SHA512[0]}/" ports/google-cloud-cpp/portfile.cmake
267+
sed -i "/REPO googleapis\/google-cloud-cpp/ {n; n; s/SHA512 .*/SHA512 ${SHA512[0]}/}" ports/google-cloud-cpp/portfile.cmake
268+
```
269+
270+
#### Update the [SHA512] of googleapis repo
271+
272+
You can find the `GOOGLEAPIS_SHA512` from your release PR. For example, in
273+
[PR#15008], it is `b151ec2ae29c2c955c56784c0ce388b2d8c4a84c`.
274+
275+
```shell
276+
GOOGLEAPIS_SHA512=...
277+
SHA512=($(curl -fSsL https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_SHA512}.tar.gz | sha512sum))
278+
sed -i "/REPO googleapis\/googleapis/ {n; n; s/SHA512 .*/SHA512 ${SHA512[0]}/}" ports/google-cloud-cpp/portfile.cmake
268279
```
269280

270281
#### Commit the changes
@@ -412,6 +423,7 @@ ______________________________________________________________________
412423
[github-guides]: https://guides.github.com/
413424
[googleapis-sha-update-policy]: https://github.com/googleapis/google-cloud-cpp/blob/main/doc/adr/2024-08-13-googleapis-sha-update-policy.md
414425
[pr#138]: https://github.com/conda-forge/google-cloud-cpp-feedstock/pull/138
426+
[pr#15008]: https://github.com/googleapis/google-cloud-cpp/pull/15008
415427
[pr#32391]: https://github.com/microsoft/vcpkg/pull/32391
416428
[sha512]: https://learn.microsoft.com/en-us/vcpkg/maintainers/functions/vcpkg_from_github#sha512
417429
[vcpkg port]: https://github.com/Microsoft/vcpkg/tree/master/ports/google-cloud-cpp

0 commit comments

Comments
 (0)