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: I1c472e832ebf473d0138e0e28120a607dc831f31
  • Loading branch information
morambro authored and copybara-github committed Oct 8, 2024
1 parent e9da237 commit b0ccda7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion integration/awskms/aws_kms_aead.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 3 additions & 1 deletion kokoro/gcp_ubuntu/gomod/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
4 changes: 3 additions & 1 deletion kokoro/macos_external/gomod/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)" \
Expand Down
2 changes: 0 additions & 2 deletions version.bzl

This file was deleted.

0 comments on commit b0ccda7

Please sign in to comment.