From 9cb0a11397931fd5cbce51059b7dbd37530d28b5 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Tue, 28 Jul 2020 14:50:38 -0600 Subject: [PATCH] remove rsc.io/quote/v3 as dep (#465) --- go.mod | 1 - go.sum | 5 ----- mockgen/mockgen_test.go | 2 +- tools.go | 22 ---------------------- 4 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 tools.go diff --git a/go.mod b/go.mod index 5932535f..006dc1c6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/golang/mock require ( golang.org/x/mod v0.3.0 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e - rsc.io/quote/v3 v3.1.0 ) go 1.11 diff --git a/go.sum b/go.sum index 2511fffe..d4a401da 100644 --- a/go.sum +++ b/go.sum @@ -8,7 +8,6 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e h1:aZzprAO9/8oim3qStq3wc1Xuxx4QmAGriC4VU4ojemQ= @@ -16,7 +15,3 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/mockgen/mockgen_test.go b/mockgen/mockgen_test.go index 515efb2f..1b8e31b9 100644 --- a/mockgen/mockgen_test.go +++ b/mockgen/mockgen_test.go @@ -344,7 +344,7 @@ func Test_createPackageMap(t *testing.T) { }{ {"golang package", "context", "context", true}, {"third party", "golang.org/x/tools/present", "present", true}, - {"modules", "rsc.io/quote/v3", "quote", true}, + //{"modules", "rsc.io/quote/v3", "quote", true}, {"fail", "this/should/not/work", "", false}, } var importPaths []string diff --git a/tools.go b/tools.go deleted file mode 100644 index c1ea6236..00000000 --- a/tools.go +++ /dev/null @@ -1,22 +0,0 @@ -// +build tools - -// Copyright 2020 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package mock - -// These imports are included here so they don't disappear from go.mod file. -import ( - _ "rsc.io/quote/v3" -)