Skip to content

x/tools/gopls: filter intermediate test variants when resolving package for file #57795

Closed
@findleyr

Description

@findleyr

https://go.dev/cl/455615 simplified our package APIs, but dropped the explicit filtering of intermediate test variants from snapshot.PackageForFile.

I believe as a result of this change, we may get an intermediate test variant at the call sites where we previously would not. This can cause needless type-checking.

Not yet released, but we must address this before v0.12.0

CC @adonovan

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/incrementalrelease-blocker

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions