fietsje: implement
This introduces Fietsje, a little Go dependency manager.
For more information, see third_party/go/fietsje/README.md.
We also bump some dependencies while we're at it, notably, sqliboiler
now uses Go modules. If we weren't to do that, we'd have to add more
heuristics to Fietsje to handle the old version correctly.
Test Plan: fietsje is untested - I'll add some tests to it. Everything else is just regenerating basically the same repositories.bzl file, but with some bumped dependencies.
X-Origin-Diff: phab/D535
GitOrigin-RevId: 4fc919e1bd386bc3f3c1c53e672b1e3b9da17dfc
diff --git a/build/fietsje/BUILD.bazel b/build/fietsje/BUILD.bazel
new file mode 100644
index 0000000..b54b307
--- /dev/null
+++ b/build/fietsje/BUILD.bazel
@@ -0,0 +1,38 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+
+go_library(
+ name = "go_default_library",
+ srcs = [
+ "dependency.go",
+ "deps_containerd.go",
+ "deps_gvisor.go",
+ "deps_kubernetes.go",
+ "deps_sqlboiler.go",
+ "main.go",
+ "planner.go",
+ "render.go",
+ "shelf.go",
+ "transitive.go",
+ ],
+ importpath = "git.monogon.dev/source/nexantic.git/build/fietsje",
+ visibility = ["//visibility:private"],
+ deps = [
+ "//build/fietsje/proto:go_default_library",
+ "@bazel_gazelle//label:go_default_library",
+ "@com_github_golang_protobuf//proto:go_default_library",
+ "@org_golang_x_mod//modfile:go_default_library",
+ ],
+)
+
+go_binary(
+ name = "fietsje",
+ embed = [":go_default_library"],
+ visibility = ["//visibility:public"],
+)
+
+exports_files(
+ [
+ "fietsje.bash.in",
+ ],
+ visibility = ["//visibility:public"],
+)