tink-crypto / tink

Tink is a multi-language, cross-platform, open source library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
https://developers.google.com/tink
Apache License 2.0
13.5k stars 1.18k forks source link

fix go proto module path #669

Closed timruffles closed 1 year ago

timruffles commented 1 year ago

Go modules have a go.mod at the referenced path. For google/tink that's in the go subdirectory. This is why go get will not work with the package:

$ go get github.com/google/tink/proto/aes_gcm_go_proto
go: module github.com/google/tink@upgrade found (v1.7.0), but does not contain package github.com/google/tink/proto/aes_gcm_go_proto

Updating the path allows the install to work correctly (and compiling proto code referencing this proto to install the module successfully).