Skip to content

Commit fea71df

Browse files
morambrocopybara-github
authored andcommitted
Update go.mod, go.sum and deps.bzl
Also update Kokoro test scripts to replace com_github_tink_crypto_tink_go_v2 instead of com_github_tink_crypto_tink_go. PiperOrigin-RevId: 542478842 Change-Id: I814052eb453fe9c49e35a9be0c3d485dff8de981
1 parent 49d0850 commit fea71df

File tree

7 files changed

+28
-29
lines changed

7 files changed

+28
-29
lines changed

deps.bzl

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def tink_go_awskms_dependencies():
1111
go_repository(
1212
name = "com_github_aws_aws_sdk_go",
1313
importpath = "github.com/aws/aws-sdk-go",
14-
sum = "h1:Asrp6EMqqRxZvjK0NjzkWcrOk15RnWtupuUrUuZMabk=",
15-
version = "v1.44.267",
14+
sum = "h1:bLnBVutuyCGYZgQlu3wiXOJXtgI7EIWAaDIqVVudF3w=",
15+
version = "v1.44.286",
1616
)
1717
go_repository(
1818
name = "com_github_davecgh_go_spew",
@@ -64,12 +64,14 @@ def tink_go_awskms_dependencies():
6464
sum = "h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=",
6565
version = "v0.1.0",
6666
)
67+
6768
go_repository(
68-
name = "com_github_tink_crypto_tink_go",
69-
importpath = "github.com/tink-crypto/tink-go",
70-
sum = "h1:XpILcYStxVV79Y3eFpiJLKXQ35QuSn9kVLyq5QPU8Vg=",
71-
version = "v0.0.0-20230523140635-48bf5fd5b1c7",
69+
name = "com_github_tink_crypto_tink_go_v2",
70+
importpath = "github.com/tink-crypto/tink-go/v2",
71+
sum = "h1:LutFJapahsM0i/6hKfOkzSYTVeshmFs+jloZXqe9z9s=",
72+
version = "v2.0.0",
7273
)
74+
7375
go_repository(
7476
name = "com_github_yuin_goldmark",
7577
importpath = "github.com/yuin/goldmark",

go.mod

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ module github.com/tink-crypto/tink-go-awskms/v2
33
go 1.19
44

55
require (
6-
github.com/aws/aws-sdk-go v1.44.267
7-
// NOTE: The tag doesn't exist, yet this is needed since we keep compatibility with the top of
8-
// tink-go's main branch. Gomod tests add a replace directive to use a local tink-go repository.
9-
// TODO(b/204159796): Update this once tink-go release is complete.
6+
github.com/aws/aws-sdk-go v1.44.286
107
github.com/tink-crypto/tink-go/v2 v2.0.0
118
)
129

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/aws/aws-sdk-go v1.44.267 h1:Asrp6EMqqRxZvjK0NjzkWcrOk15RnWtupuUrUuZMabk=
2-
github.com/aws/aws-sdk-go v1.44.267/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
1+
github.com/aws/aws-sdk-go v1.44.286 h1:bLnBVutuyCGYZgQlu3wiXOJXtgI7EIWAaDIqVVudF3w=
2+
github.com/aws/aws-sdk-go v1.44.286/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
33
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
44
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
@@ -13,8 +13,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
1313
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1414
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1515
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
16-
github.com/tink-crypto/tink-go v0.0.0-20230523140635-48bf5fd5b1c7 h1:XpILcYStxVV79Y3eFpiJLKXQ35QuSn9kVLyq5QPU8Vg=
17-
github.com/tink-crypto/tink-go v0.0.0-20230523140635-48bf5fd5b1c7/go.mod h1:HhtDVdE/PRZFRia834tkmcwuscnaAzda1RJUW9Pr3Rg=
16+
github.com/tink-crypto/tink-go/v2 v2.0.0 h1:LutFJapahsM0i/6hKfOkzSYTVeshmFs+jloZXqe9z9s=
17+
github.com/tink-crypto/tink-go/v2 v2.0.0/go.mod h1:QAbyq9LZncomYnScxlfaHImbV4ieNIe6bnu/Xcqqox4=
1818
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
1919
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
2020
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=

integration/awskms/BUILD.bazel

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ go_library(
1818
"@com_github_aws_aws_sdk_go//aws/session",
1919
"@com_github_aws_aws_sdk_go//service/kms",
2020
"@com_github_aws_aws_sdk_go//service/kms/kmsiface",
21-
"@com_github_tink_crypto_tink_go//core/registry",
22-
"@com_github_tink_crypto_tink_go//tink",
21+
"@com_github_tink_crypto_tink_go_v2//core/registry",
22+
"@com_github_tink_crypto_tink_go_v2//tink",
2323
],
2424
)
2525

@@ -42,10 +42,10 @@ go_test(
4242
"//integration/awskms/internal/fakeawskms",
4343
"@com_github_aws_aws_sdk_go//aws",
4444
"@com_github_aws_aws_sdk_go//service/kms",
45-
"@com_github_tink_crypto_tink_go//aead",
46-
"@com_github_tink_crypto_tink_go//core/registry",
47-
"@com_github_tink_crypto_tink_go//keyset",
48-
"@com_github_tink_crypto_tink_go//subtle/random",
45+
"@com_github_tink_crypto_tink_go_v2//aead",
46+
"@com_github_tink_crypto_tink_go_v2//core/registry",
47+
"@com_github_tink_crypto_tink_go_v2//keyset",
48+
"@com_github_tink_crypto_tink_go_v2//subtle/random",
4949
],
5050
)
5151

integration/awskms/internal/fakeawskms/BUILD.bazel

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ go_library(
99
srcs = ["fakeawskms.go"],
1010
importpath = "github.com/tink-crypto/tink-go-awskms/v2/integration/awskms/internal/fakeawskms",
1111
deps = [
12-
"@com_github_tink_crypto_tink_go//tink",
13-
"@com_github_tink_crypto_tink_go//keyset",
14-
"@com_github_tink_crypto_tink_go//aead",
12+
"@com_github_tink_crypto_tink_go_v2//tink",
13+
"@com_github_tink_crypto_tink_go_v2//keyset",
14+
"@com_github_tink_crypto_tink_go_v2//aead",
1515
"@com_github_aws_aws_sdk_go//service/kms",
1616
"@com_github_aws_aws_sdk_go//service/kms/kmsiface",
1717
],

kokoro/gcp_ubuntu/bazel/run_tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ readonly GITHUB_ORG="https://github.com/tink-crypto"
6060

6161
cp WORKSPACE WORKSPACE.bak
6262

63-
# Replace com_github_tink_crypto_tink_go with a local one.
63+
# Replace com_github_tink_crypto_tink_go_v2 with a local one.
6464
mapfile -d '' TINK_GO_LOCAL_REPO <<'EOF'
6565
local_repository(\
66-
name = "com_github_tink_crypto_tink_go",\
66+
name = "com_github_tink_crypto_tink_go_v2",\
6767
path = "../tink_go",\
6868
)\
6969
EOF
7070
readonly TINK_GO_LOCAL_REPO
7171

7272
mapfile -d '' TINK_GO_DEPENDENCIES <<'EOF'
73-
load("@com_github_tink_crypto_tink_go//:deps.bzl", tink_go_dependencies="go_dependencies")\
73+
load("@com_github_tink_crypto_tink_go_v2//:deps.bzl", tink_go_dependencies="go_dependencies")\
7474
\
7575
tink_go_dependencies()\
7676
EOF

kokoro/macos_external/bazel/run_tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ echo "Using go binary from $(which go): $(go version)"
4141
# refactoring that takes into account extensions to tink-go.
4242
./kokoro/testutils/copy_credentials.sh "testdata" "aws"
4343

44-
# Replace com_github_tink_crypto_tink_go with a local one.
45-
grep -r "com_github_tink_crypto_tink_go" -l --include="*.bazel" . \
44+
# Replace com_github_tink_crypto_tink_go_v2 with a local one.
45+
grep -r "com_github_tink_crypto_tink_go_v2" -l --include="*.bazel" . \
4646
| xargs sed -i '.bak' \
47-
"s~com_github_tink_crypto_tink_go~com_github_tink_crypto_tink_go_local~g"
47+
"s~com_github_tink_crypto_tink_go_v2~com_github_tink_crypto_tink_go_local~g"
4848

4949
sed -i '.bak' \
5050
's~workspace(name = "tink_go_awskms")~workspace(name = "tink_go_awskms")\

0 commit comments

Comments
 (0)