devtools/depotview: init

This is a small service for accessing git repos read-only over gRPC.

It's going to be used to allow hackdoc to render arbitrary versions of
hscloud.

Change-Id: Ib3c5eb5a8bc679e8062142e6fa30505d9550e2fa
diff --git a/WORKSPACE b/WORKSPACE
index d4d45b1..bf25c0c 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -183,23 +183,12 @@
 http_archive(
     name = "io_bazel_rules_go",
     urls = [
-        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.3/rules_go-v0.21.3.tar.gz",
-        "https://github.com/bazelbuild/rules_go/releases/download/v0.21.3/rules_go-v0.21.3.tar.gz",
+        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.2/rules_go-v0.22.2.tar.gz",
+        "https://github.com/bazelbuild/rules_go/releases/download/v0.22.2/rules_go-v0.22.2.tar.gz",
     ],
-    sha256 = "af04c969321e8f428f63ceb73463d6ea817992698974abeff0161e069cd08bd6",
+    sha256 = "142dd33e38b563605f0d20e89d9ef9eda0fc3cb539a14be1bdb1350de2eda659",
 )
 
-# Invoke go_rules_dependencies depending on host platform.
-load("//tools:go_sdk.bzl", "gen_imports")
-
-gen_imports(name = "go_sdk_imports")
-
-load("@go_sdk_imports//:imports.bzl", "load_go_sdk")
-
-load_go_sdk()
-
-# Go Gazelle rules
-
 http_archive(
     name = "bazel_gazelle",
     urls = [
@@ -208,9 +197,20 @@
     ],
     sha256 = "d8c45ee70ec39a57e7a05e5027c32b1576cc7f16d9dd37135b0eddde45cf1b10",
 )
-
 load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
 
+go_repository(
+    name = "org_golang_x_net",
+    commit = "d3edc9973b7eb1fb302b0ff2c62357091cea9a30",
+    importpath = "golang.org/x/net",
+)
+
+# Invoke go_rules_dependencies depending on host platform.
+load("//tools:go_sdk.bzl", "gen_imports")
+gen_imports(name = "go_sdk_imports")
+load("@go_sdk_imports//:imports.bzl", "load_go_sdk")
+load_go_sdk()
+
 gazelle_dependencies()
 
 # For devtools/gerrit/gerrit-oauth-provider
@@ -481,12 +481,6 @@
 )
 
 go_repository(
-    name = "org_golang_x_net",
-    commit = "13f9640d40b9",
-    importpath = "golang.org/x/net",
-)
-
-go_repository(
     name = "com_github_stackexchange_wmi",
     commit = "cbe66965904dbe8a6cd589e2298e5d8b986bd7dd",
     importpath = "github.com/stackexchange/wmi",
@@ -1963,3 +1957,58 @@
     commit = "7bfe4c7ecddb3666a94b053b422cdd8f5aaa3615",
     importpath = "github.com/shurcooL/sanitized_anchor_name",
 )
+
+go_repository(
+    name = "com_github_go_git_go_billy_v5",
+    commit = "d7a8afccaed297c30f8dff5724dbe422b491dd0d",
+    importpath = "github.com/go-git/go-billy/v5",
+    remote = "https://github.com/go-git/go-billy",
+    vcs = "git",
+)
+
+go_repository(
+    name = "com_github_go_git_go_git_v5",
+    commit = "3127ad9a44a2ee935502816065dfe39f494f583d",
+    importpath = "github.com/go-git/go-git/v5",
+    remote = "https://github.com/go-git/go-git",
+    vcs = "git",
+    build_extra_args = [
+        "-known_import=github.com/go-git/go-billy/v5",
+    ],
+)
+
+go_repository(
+    name = "com_github_go_git_gcfg",
+    commit = "22f18f9a74d34e3b1a7d59cfa33043bc50ebe376",
+    importpath = "github.com/go-git/gcfg",
+)
+
+go_repository(
+    name = "in_gopkg_warnings_v0",
+    commit = "ec4a0fea49c7b46c2aeb0b51aac55779c607e52b",
+    importpath = "gopkg.in/warnings.v0",
+)
+
+go_repository(
+    name = "com_github_emirpasic_gods",
+    commit = "80e934ed68b9084f386ae25f74f839aaecfb54d8",
+    importpath = "github.com/emirpasic/gods",
+)
+
+go_repository(
+    name = "com_github_jbenet_go_context",
+    commit = "d14ea06fba99483203c19d92cfcd13ebe73135f4",
+    importpath = "github.com/jbenet/go-context",
+)
+
+go_repository(
+    name = "com_github_kevinburke_ssh_config",
+    commit = "01f96b0aa0cdcaa93f9495f89bbc6cb5a992ce6e",
+    importpath = "github.com/kevinburke/ssh_config",
+)
+
+go_repository(
+    name = "com_github_xanzy_ssh_agent",
+    commit = "6a3e2ff9e7c564f36873c2e36413f634534f1c44",
+    importpath = "github.com/xanzy/ssh-agent",
+)