m/c/metroctl: add skeleton and dependencies
This adds the skeleton for the Metropolis control command line,
metroctl. It currently consists of a single root command doing nothing
and the dependency updates for viper, the library providing command
line parsing and completion support.
Actual functionality will be in subsequent CLs.
Change-Id: I73d0e2956d9550902a80295928e94cb32bb12cfc
Reviewed-on: https://review.monogon.dev/c/monogon/+/337
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index 5778b9c..c134586 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -1928,8 +1928,8 @@
go_repository(
name = "com_github_spf13_cobra",
importpath = "github.com/spf13/cobra",
- version = "v1.0.0",
- sum = "h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8=",
+ version = "v1.2.1",
+ sum = "h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw=",
build_extra_args = [
"-go_naming_convention=go_default_library",
"-go_naming_convention_external=go_default_library",
@@ -1958,8 +1958,8 @@
go_repository(
name = "com_github_spf13_viper",
importpath = "github.com/spf13/viper",
- version = "v1.4.0",
- sum = "h1:yXHLWeravcrgGyFSyCgdYpXQ9dR9c/WED3pg1RhxqEU=",
+ version = "v1.9.0",
+ sum = "h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk=",
build_extra_args = [
"-go_naming_convention=go_default_library",
"-go_naming_convention_external=go_default_library",
@@ -1976,6 +1976,16 @@
],
)
go_repository(
+ name = "com_github_subosito_gotenv",
+ importpath = "github.com/subosito/gotenv",
+ version = "v1.2.0",
+ sum = "h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=",
+ build_extra_args = [
+ "-go_naming_convention=go_default_library",
+ "-go_naming_convention_external=go_default_library",
+ ],
+ )
+ go_repository(
name = "com_github_syndtr_gocapability",
importpath = "github.com/syndtr/gocapability",
version = "v0.0.0-20180916011248-d98352740cb2",
@@ -2330,6 +2340,16 @@
],
)
go_repository(
+ name = "in_gopkg_ini_v1",
+ importpath = "gopkg.in/ini.v1",
+ version = "v1.63.2",
+ sum = "h1:tGK/CyBg7SMzb60vP1M03vNZ3VDu3wGQJwn7Sxi9r3c=",
+ build_extra_args = [
+ "-go_naming_convention=go_default_library",
+ "-go_naming_convention_external=go_default_library",
+ ],
+ )
+ go_repository(
name = "in_gopkg_natefinch_lumberjack_v2",
importpath = "gopkg.in/natefinch/lumberjack.v2",
version = "v2.0.0",
diff --git a/third_party/go/shelf.pb.text b/third_party/go/shelf.pb.text
index e9bfcef..b3f3007 100644
--- a/third_party/go/shelf.pb.text
+++ b/third_party/go/shelf.pb.text
@@ -2295,6 +2295,13 @@
semver: "v1.0.0"
>
entry: <
+ import_path: "github.com/spf13/cobra"
+ version: "v1.2.1"
+ bazel_name: "com_github_spf13_cobra"
+ sum: "h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw="
+ semver: "v1.2.1"
+>
+entry: <
import_path: "github.com/spf13/jwalterweatherman"
version: "v1.1.0"
bazel_name: "com_github_spf13_jwalterweatherman"
@@ -2316,6 +2323,13 @@
semver: "v1.4.0"
>
entry: <
+ import_path: "github.com/spf13/viper"
+ version: "v1.9.0"
+ bazel_name: "com_github_spf13_viper"
+ sum: "h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk="
+ semver: "v1.9.0"
+>
+entry: <
import_path: "github.com/stretchr/testify"
version: "221dbe5ed46703ee255b1da0dec05086f5035f62"
bazel_name: "com_github_stretchr_testify"
@@ -2330,6 +2344,13 @@
semver: "v1.4.0"
>
entry: <
+ import_path: "github.com/subosito/gotenv"
+ version: "v1.2.0"
+ bazel_name: "com_github_subosito_gotenv"
+ sum: "h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s="
+ semver: "v1.2.0"
+>
+entry: <
import_path: "github.com/syndtr/gocapability"
version: "d98352740cb2c55f81556b63d4a1ec64c5a319c2"
bazel_name: "com_github_syndtr_gocapability"
@@ -2750,6 +2771,13 @@
semver: "v0.9.1"
>
entry: <
+ import_path: "gopkg.in/ini.v1"
+ version: "v1.63.2"
+ bazel_name: "in_gopkg_ini_v1"
+ sum: "h1:tGK/CyBg7SMzb60vP1M03vNZ3VDu3wGQJwn7Sxi9r3c="
+ semver: "v1.63.2"
+>
+entry: <
import_path: "gopkg.in/natefinch/lumberjack.v2"
version: "v2.0.0"
bazel_name: "in_gopkg_natefinch_lumberjack_v2"