third_party/go: move some repositories from WORKSPACE
Change-Id: Icc23c741512d148c9b3dfb19c52b205d4c0150bd
diff --git a/WORKSPACE b/WORKSPACE
index 3514b01..02b24e6 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -20,6 +20,7 @@
# Force rules_python at a bleeding edge version (for setuptools >44).
rules_python_version = "929d5a13d4eb1b930086d9353fc6f2d6ad306e43"
+
http_archive(
name = "rules_python",
strip_prefix = "rules_python-{}".format(rules_python_version),
@@ -49,15 +50,19 @@
# Python rules
# Important: rules_python must be loaded before protobuf (and grpc) because they load an older version otherwise
load("@rules_python//python:pip.bzl", "pip_parse")
+
pip_parse(
name = "pydeps",
requirements_lock = "//third_party/py:requirements.txt",
)
+
load("@pydeps//:requirements.bzl", "install_deps")
+
install_deps()
# Setup Go toolchain.
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains")
+
go_register_toolchains()
# IMPORTANT: match protobuf version above with the one loaded by grpc
@@ -154,8 +159,9 @@
gerrit_api()
-load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps="external_plugin_deps")
-gerrit_oauth_deps(omit_commons_codec=False)
+load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps = "external_plugin_deps")
+
+gerrit_oauth_deps(omit_commons_codec = False)
# Gerrit 3.3.2 built by q3k, backported with fix for 'empty reviewers column' bug.
# See: https://bugs.chromium.org/p/gerrit/issues/detail?id=13899
@@ -238,7 +244,9 @@
commit = "17817c9e319073c03513f9d5177b6142b8fd567b",
shallow_since = "1593642470 +0200",
)
-load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps="external_plugin_deps_standalone")
+
+load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps = "external_plugin_deps_standalone")
+
gerrit_owners_deps()
# Go image repos for Docker
@@ -290,22 +298,8 @@
)
go_repository(
- name = "com_github_gorilla_sessions",
- importpath = "github.com/gorilla/sessions",
- sum = "h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7FsgI=",
- version = "v1.2.1",
-)
-
-go_repository(
- name = "com_github_boltdb_bolt",
- importpath = "github.com/boltdb/bolt",
- sum = "h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4=",
- version = "v1.3.1",
-)
-
-go_repository(
- name = "com_github_gorilla_securecookie",
- importpath = "github.com/gorilla/securecookie",
- sum = "h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ=",
- version = "v1.1.1",
+ name = "com_github_arran4_golang_ical",
+ importpath = "github.com/arran4/golang-ical",
+ sum = "h1:oOgavmDMGCnNtwZwNoXuK3jCcpF3I96Do9/5qPeSCr8=",
+ version = "v0.0.0-20210601225245-48fd351b08e7",
)