Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/cache: check views on any on-disk change to go.mod files
To prepare for the follow up change, where we honor local replaces in the view selection algorithm, treat go.mod files more like go.work files in a couple places: - Re-run the view selection algorithm whenever a go.mod file changes on disk. - Use the workspaceModFiles field in the bestView algorithm, rather than checking the gomod field directly. Apart from perhaps running the view selection algorithm more frequently, this change should have no observable impact. For golang/go#64888 Change-Id: I9d9a74b876791a77e284a1a1d5fcc7a691199901 Reviewed-on: https://go-review.googlesource.com/c/tools/+/562679 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information