Skip to content

Commit

Permalink
Delete version.bzl
Browse files Browse the repository at this point in the history
The version is now specified in the package comment.

PiperOrigin-RevId: 683554197
Change-Id: Id6aa1d6418a9dcba6fdc4952bb8c09fabf7ee453
  • Loading branch information
morambro authored and copybara-github committed Oct 8, 2024
1 parent 2e3489c commit 7be0483
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 2 additions & 0 deletions integration/hcvault/hcvault_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

// Package hcvault provides integration with the [HashiCorp Vault].
//
// Version: 2.1.0
//
// [HashiCorp Vault]: https://www.vaultproject.io/.
package hcvault

Expand Down
10 changes: 6 additions & 4 deletions kokoro/gcp_ubuntu/gomod/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ if [[ -n "${CONTAINER_IMAGE:-}" ]]; then
RUN_COMMAND_ARGS+=( -c "${CONTAINER_IMAGE}" )
fi

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

./kokoro/testutils/run_command.sh "${RUN_COMMAND_ARGS[@]}" \
./kokoro/testutils/check_go_generated_files_up_to_date.sh .
./kokoro/testutils/run_command.sh "${RUN_COMMAND_ARGS[@]}" \
./kokoro/testutils/run_go_mod_tests.sh "${TINK_GO_HCVAULT_MODULE_URL}" . \
"${TINK_GO_HCVAULT_VERSION}" "main"
./kokoro/testutils/run_go_mod_tests.sh "${MODULE_URL}" . \
"${MODULE_VERSION}" "main"
11 changes: 6 additions & 5 deletions kokoro/macos_external/gomod/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ fi
source ./kokoro/testutils/install_go.sh
echo "Using go binary from $(which go): $(go version)"

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

./kokoro/testutils/run_go_mod_tests.sh "${TINK_GO_HCVAULT_MODULE_URL}" \
"$(pwd)" "${TINK_GO_HCVAULT_VERSION}" "main"
./kokoro/testutils/run_go_mod_tests.sh "${MODULE_URL}" "$(pwd)" \
"${MODULE_VERSION}" "main"
2 changes: 0 additions & 2 deletions version.bzl

This file was deleted.

0 comments on commit 7be0483

Please sign in to comment.