From b0ccda7f3d9fe1835b4558b68eaba1c0a2d5664a Mon Sep 17 00:00:00 2001 From: Moreno Ambrosin Date: Tue, 8 Oct 2024 03:45:52 -0700 Subject: [PATCH] Delete version.bzl The version is now specified in the package comment. PiperOrigin-RevId: 683554197 Change-Id: I1c472e832ebf473d0138e0e28120a607dc831f31 --- integration/awskms/aws_kms_aead.go | 6 +++++- kokoro/gcp_ubuntu/gomod/run_tests.sh | 4 +++- kokoro/macos_external/gomod/run_tests.sh | 4 +++- version.bzl | 2 -- 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 version.bzl diff --git a/integration/awskms/aws_kms_aead.go b/integration/awskms/aws_kms_aead.go index cb37a1b..ebc9939 100644 --- a/integration/awskms/aws_kms_aead.go +++ b/integration/awskms/aws_kms_aead.go @@ -12,7 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package awskms provides integration with the AWS Key Management Service. +// Package awskms provides integration with the [AWS KMS]. +// +// Version: 2.1.0 +// +// [AWS KMS]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-overview.html package awskms import ( diff --git a/kokoro/gcp_ubuntu/gomod/run_tests.sh b/kokoro/gcp_ubuntu/gomod/run_tests.sh index a8baa72..b524759 100644 --- a/kokoro/gcp_ubuntu/gomod/run_tests.sh +++ b/kokoro/gcp_ubuntu/gomod/run_tests.sh @@ -42,7 +42,9 @@ if [[ -n "${CONTAINER_IMAGE:-}" ]]; then fi readonly MODULE_URL="github.com/tink-crypto/tink-go-awskms" -readonly MODULE_VERSION="$(cat version.bzl | grep ^TINK | cut -f 2 -d \")" +readonly MODULE_VERSION="$(cat integration/awskms/aws_kms_aead.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 . diff --git a/kokoro/macos_external/gomod/run_tests.sh b/kokoro/macos_external/gomod/run_tests.sh index 00eadaf..c8409eb 100644 --- a/kokoro/macos_external/gomod/run_tests.sh +++ b/kokoro/macos_external/gomod/run_tests.sh @@ -26,7 +26,9 @@ source ./kokoro/testutils/install_go.sh echo "Using go binary from $(which go): $(go version)" readonly MODULE_URL="github.com/tink-crypto/tink-go-awskms" -readonly MODULE_VERSION="$(cat version.bzl | grep ^TINK | cut -f 2 -d \")" +readonly MODULE_VERSION="$(cat integration/awskms/aws_kms_aead.go \ + | grep '// Version:' \ + | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')" ./kokoro/testutils/copy_credentials.sh "testdata" "aws" ./kokoro/testutils/run_go_mod_tests.sh "${MODULE_URL}" "$(pwd)" \ diff --git a/version.bzl b/version.bzl deleted file mode 100644 index 4f12b04..0000000 --- a/version.bzl +++ /dev/null @@ -1,2 +0,0 @@ -"""Version of the current release of the Tink Go AWS KMS Extension""" -TINK_GO_AWSKMS_EXTENSION = "2.1.0"