Skip to content

Commit 545ca87

Browse files
findleyrgopherbot
authored andcommitted
gopls/internal/regtest/marker: require go/packages
Add a missing testenv condition to the marker test runner. Fixes golang/go#58396 Change-Id: I69a7fe6dfab011ba789a066e2c7677c0315eed00 Reviewed-on: https://go-review.googlesource.com/c/tools/+/466715 Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> gopls-CI: kokoro <[email protected]> Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent 1ace7db commit 545ca87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gopls/internal/lsp/regtest/marker.go

+3
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ var update = flag.Bool("update", false, "if set, update test data during marker
236236
// - AddImport
237237
// - SelectionRanges
238238
func RunMarkerTests(t *testing.T, dir string) {
239+
// The marker tests must be able to run go/packages.Load.
240+
testenv.NeedsGoPackages(t)
241+
239242
tests, err := loadMarkerTests(dir)
240243
if err != nil {
241244
t.Fatal(err)

0 commit comments

Comments
 (0)