From de396611c475e4c9001c1eb1c9e4b722ed6c093a Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sat, 24 Jun 2023 21:22:46 -0400 Subject: [PATCH] go/vcs: isolate into a nested module The previous change marked the vcs package as deprecated. This change isolates it into a nested module where it will be tagged as v0.1.0-deprecated, its last version. The next change deletes the nested module from the tools repo. For golang/go#57051. Change-Id: I0b7df60dbe87c1d97f150e5f8ca10e9d281a9364 Reviewed-on: https://go-review.googlesource.com/c/tools/+/505955 gopls-CI: kokoro Run-TryBot: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- go.mod | 7 +++++++ go.sum | 2 ++ vcs.go | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..74da6cb --- /dev/null +++ b/go.mod @@ -0,0 +1,7 @@ +// Deprecated: This module contains one deprecated package. +// See the package deprecation notice for more information. +module golang.org/x/tools/go/vcs + +go 1.19 + +require golang.org/x/sys v0.9.0 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..cb35c1f --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/vcs.go b/vcs.go index edbdf60..232177d 100644 --- a/vcs.go +++ b/vcs.go @@ -16,7 +16,7 @@ // It needed to be manually kept in sync with upstream when changes were // made to cmd/go/internal/get, as tracked in go.dev/issue/11490. // By now, it has diverged significantly from upstream cmd/go/internal/get -// behavior and is not being actively updated. +// behavior and will not receive any further updates. package vcs // import "golang.org/x/tools/go/vcs" import (