-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use carved out module for x/tools/go/vcs (#3671)
This part of golang.org/x/tools was removed from tools. The vcs code is still available in a separate module with a version marked as "deprecated". Let's use it for now.
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff -urN a/BUILD.bazel b/BUILD.bazel | ||
--- a/BUILD.bazel 1970-01-01 01:00:00.000000000 +0100 | ||
+++ b/BUILD.bazel 2023-08-12 19:21:03.606016940 +0200 | ||
@@ -0,0 +1,26 @@ | ||
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
+ | ||
+go_library( | ||
+ name = "vcs", | ||
+ srcs = [ | ||
+ "discovery.go", | ||
+ "env.go", | ||
+ "http.go", | ||
+ "vcs.go", | ||
+ ], | ||
+ importpath = "golang.org/x/tools/go/vcs", | ||
+ visibility = ["//visibility:public"], | ||
+ deps = ["@org_golang_x_sys//execabs:go_default_library"], | ||
+) | ||
+ | ||
+alias( | ||
+ name = "go_default_library", | ||
+ actual = ":vcs", | ||
+ visibility = ["//visibility:public"], | ||
+) | ||
+ | ||
+go_test( | ||
+ name = "vcs_test", | ||
+ srcs = ["vcs_test.go"], | ||
+ embed = [":vcs"], | ||
+) |