Skip to content

Commit 7be0483

Browse files
morambrocopybara-github
authored andcommitted
Delete version.bzl
The version is now specified in the package comment. PiperOrigin-RevId: 683554197 Change-Id: Id6aa1d6418a9dcba6fdc4952bb8c09fabf7ee453
1 parent 2e3489c commit 7be0483

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

integration/hcvault/hcvault_client.go

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
// Package hcvault provides integration with the [HashiCorp Vault].
1616
//
17+
// Version: 2.1.0
18+
//
1719
// [HashiCorp Vault]: https://www.vaultproject.io/.
1820
package hcvault
1921

kokoro/gcp_ubuntu/gomod/run_tests.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ if [[ -n "${CONTAINER_IMAGE:-}" ]]; then
3636
RUN_COMMAND_ARGS+=( -c "${CONTAINER_IMAGE}" )
3737
fi
3838

39-
readonly TINK_GO_HCVAULT_MODULE_URL="github.com/tink-crypto/tink-go-hcvault"
40-
readonly TINK_GO_HCVAULT_VERSION="$(cat version.bzl | grep ^TINK | cut -f 2 -d \")"
39+
readonly MODULE_URL="github.com/tink-crypto/tink-go-hcvault"
40+
readonly MODULE_VERSION="$(cat integration/hcvault/hcvault_client.go \
41+
| grep '// Version:' \
42+
| grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')"
4143

4244
./kokoro/testutils/run_command.sh "${RUN_COMMAND_ARGS[@]}" \
4345
./kokoro/testutils/check_go_generated_files_up_to_date.sh .
4446
./kokoro/testutils/run_command.sh "${RUN_COMMAND_ARGS[@]}" \
45-
./kokoro/testutils/run_go_mod_tests.sh "${TINK_GO_HCVAULT_MODULE_URL}" . \
46-
"${TINK_GO_HCVAULT_VERSION}" "main"
47+
./kokoro/testutils/run_go_mod_tests.sh "${MODULE_URL}" . \
48+
"${MODULE_VERSION}" "main"

kokoro/macos_external/gomod/run_tests.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ fi
2525
source ./kokoro/testutils/install_go.sh
2626
echo "Using go binary from $(which go): $(go version)"
2727

28-
readonly TINK_GO_HCVAULT_MODULE_URL="github.com/tink-crypto/tink-go-hcvault"
29-
readonly TINK_GO_HCVAULT_VERSION="$(cat version.bzl | grep ^TINK \
30-
| cut -f 2 -d \")"
28+
readonly MODULE_URL="github.com/tink-crypto/tink-go-hcvault"
29+
readonly MODULE_VERSION="$(cat integration/hcvault/hcvault_client.go \
30+
| grep '// Version:' \
31+
| grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')"
3132

32-
./kokoro/testutils/run_go_mod_tests.sh "${TINK_GO_HCVAULT_MODULE_URL}" \
33-
"$(pwd)" "${TINK_GO_HCVAULT_VERSION}" "main"
33+
./kokoro/testutils/run_go_mod_tests.sh "${MODULE_URL}" "$(pwd)" \
34+
"${MODULE_VERSION}" "main"

version.bzl

-2
This file was deleted.

0 commit comments

Comments
 (0)