third_party/go: add filippo.io/age
You can test this using:
bazel run '@io_filippo_age//cmd/age'
The same target can now be used in data dependencies for secretstore
(you'll need to hardcode the runfile path, or use some
Bazel-runfile-resolving library for Python).
This required adding a few dependencies to
third_party/go/repositories.bzl, but also moving golang.org/x/crypto
from that file into WORKSPACE, before gazelle_deps gets loaded (as the
version requested by gazelle_deps is too old). We also moved shlex that
shouldn't have been in WORKSPACE into third_party/go/repositories.bzl.
Otherwise, this was just a few small deps - bumped golang.org/x/crypto,
new golang.org/x/term, new filippo.io/edwards25519. Hooray low
dependency code.
Change-Id: I0e684d88efffde13a3b4e253860aabcb35a3c94d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1158
Reviewed-by: patryk <patryk@hackerspace.pl>
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index da4a2f6..b320ccd 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -703,6 +703,12 @@
importpath = "github.com/google/pprof",
build_naming_convention = "go_default_library",
)
+ go_repository(
+ name = "com_github_google_shlex",
+ importpath = "github.com/google/shlex",
+ sum = "h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=",
+ version = "v0.0.0-20191202100458-e7afc7fbc510",
+ )
go_repository(
name = "com_github_google_uuid",
@@ -1682,6 +1688,19 @@
build_naming_convention = "go_default_library",
)
go_repository(
+ name = "io_filippo_age",
+ importpath = "filippo.io/age",
+ sum = "h1:V6q14n0mqYU3qKFkZ6oOaF9oXneOviS3ubXsSVBRSzc=",
+ version = "v1.0.0",
+ )
+ go_repository(
+ name = "io_filippo_edwards25519",
+ importpath = "filippo.io/edwards25519",
+ sum = "h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU=",
+ version = "v1.0.0-rc.1",
+ )
+
+ go_repository(
name = "io_k8s_api",
build_file_proto_mode = "disable",
importpath = "k8s.io/api",
@@ -1898,13 +1917,6 @@
build_naming_convention = "go_default_library",
tag = "v1.29.1",
)
- go_repository(
- name = "org_golang_x_crypto",
- build_naming_convention = "go_default_library",
- importpath = "golang.org/x/crypto",
- sum = "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=",
- version = "v0.0.0-20210921155107-089bfa567519",
- )
go_repository(
name = "org_golang_x_exp",
@@ -1959,6 +1971,12 @@
importpath = "golang.org/x/sys",
build_naming_convention = "go_default_library",
)
+ go_repository(
+ name = "org_golang_x_term",
+ importpath = "golang.org/x/term",
+ sum = "h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=",
+ version = "v0.0.0-20210927222741-03fcf44c2211",
+ )
go_repository(
name = "org_golang_x_text",