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/sqlboiler/sqlboiler.bzl b/build/sqlboiler/sqlboiler.bzl
index c9ed7d1..bfb4bf9 100644
--- a/build/sqlboiler/sqlboiler.bzl
+++ b/build/sqlboiler/sqlboiler.bzl
@@ -76,7 +76,7 @@
command += "cp \"{}\" migrations/\n".format(f.path)
# Copy in adapter
- command += "cp \"{}\" .\n".format(ctx.file.adapter.path)
+ command += "cp \"{}\" sqlboiler-crdb\n".format(ctx.file.adapter.path)
# Apply sql-migrate
command += "{} up --config \"{}\" \n".format(ctx.file.migrate.path, ctx.file.migrate_config.basename)
@@ -109,8 +109,8 @@
"tables": attr.string_list(default = []),
"migrate_config": attr.label(allow_single_file = True, default = Label("//build/sqlboiler:dbconfig.yml")),
"boiler_config": attr.label(allow_single_file = True, default = Label("//build/sqlboiler:sqlboiler.toml")),
- "boiler": attr.label(allow_single_file = True, default = Label("@com_github_volatiletech_sqlboiler//:sqlboiler")),
- "adapter": attr.label(allow_single_file = True, default = Label("@com_github_glerchundi_sqlboiler_crdb//:sqlboiler-crdb")),
+ "boiler": attr.label(allow_single_file = True, default = Label("@com_github_volatiletech_sqlboiler_v4//:v4")),
+ "adapter": attr.label(allow_single_file = True, default = Label("@com_github_glerchundi_sqlboiler_crdb_v4//:v4")),
"migrate": attr.label(allow_single_file = True, default = Label("@com_github_rubenv_sql_migrate//sql-migrate:sql-migrate")),
},
)
@@ -149,15 +149,14 @@
Label("@com_github_lib_pq//:go_default_library"),
Label("@com_github_pkg_errors//:go_default_library"),
Label("@com_github_spf13_viper//:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//boil:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//drivers:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//queries:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//queries/qm:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//randomize:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//strmangle:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//types:go_default_library"),
- Label("@com_github_volatiletech_sqlboiler//queries/qmhelper:go_default_library"),
- Label("@com_github_volatiletech_null//:go_default_library"),
+ Label("@com_github_volatiletech_strmangle//:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//boil:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//drivers:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//queries:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//queries/qm:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//types:go_default_library"),
+ Label("@com_github_volatiletech_sqlboiler_v4//queries/qmhelper:go_default_library"),
+ Label("@com_github_volatiletech_null_v8//:go_default_library"),
],
),
},