Skip to content

Commit

Permalink
go/packages/packagestest: fold modules_111.go into modules.go
Browse files Browse the repository at this point in the history
x/tools hasn't supported Go versions earlier than 1.11 (or even 1.11
itself) for a while.

Change-Id: I723c43dbcd1c4df56d8c663a78ec31524b912985
Reviewed-on: https://go-review.googlesource.com/c/tools/+/581795
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
  • Loading branch information
matloob authored and gopherbot committed May 3, 2024
1 parent ccdef3c commit 4db1697
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion go/packages/packagestest/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type Exporter interface {

// All is the list of known exporters.
// This is used by TestAll to run tests with all the exporters.
var All []Exporter
var All = []Exporter{GOPATH, Modules}

// TestAll invokes the testing function once for each exporter registered in
// the All global.
Expand Down
4 changes: 0 additions & 4 deletions go/packages/packagestest/gopath.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ import (
// /sometemporarydirectory/repoa/src
var GOPATH = gopath{}

func init() {
All = append(All, GOPATH)
}

type gopath struct{}

func (gopath) Name() string {
Expand Down
2 changes: 1 addition & 1 deletion go/packages/packagestest/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

// Modules is the exporter that produces module layouts.
// Each "repository" is put in it's own module, and the module file generated
// Each "repository" is put in its own module, and the module file generated
// will have replace directives for all other modules.
// Given the two files
//
Expand Down
12 changes: 0 additions & 12 deletions go/packages/packagestest/modules_111.go

This file was deleted.

0 comments on commit 4db1697

Please sign in to comment.