tools/internal/imports
Peter Weinberger a2874818ed internal/imports: test Source for go mod cache
This CL provides an implementation of the Source interface to
use an index to the go module cache to satisfy imports.

There is also a test.

Change-Id: Ic931cb132fcf7253add7fc7faadd89726ee65567
Reviewed-on: https://go-review.googlesource.com/c/tools/+/627235
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2024-11-20 12:37:14 +00:00
..
testdata/mod imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
fix.go internal/imports: carve out a Source interface for index integration 2024-11-04 18:14:50 +00:00
fix_test.go internal/imports: adjust TestStdlibSelfImports pkg 2024-11-18 16:05:08 +00:00
imports.go internal/imports: carve out a Source interface for index integration 2024-11-04 18:14:50 +00:00
imports_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
mkindex.go gopls: disable ast.Object resolution wherever possible 2024-09-25 16:16:45 +00:00
mod.go internal/imports: use a clean GOMODCACHE for the scan root directory 2024-08-13 17:53:00 +00:00
mod_cache.go gopls/internal/golang/completion: honor std symbol versions (unimported) 2024-03-07 20:03:24 +00:00
mod_cache_test.go gopls/internal/cache: share goimports state for GOMODCACHE 2024-02-06 18:49:01 +00:00
mod_test.go x/tools: assume go1.22 and simplify 2024-09-20 21:11:01 +00:00
sortimports.go gopls/internal/golang: work around bug in go/doc 2024-03-29 15:08:21 +00:00
source.go internal/imports: test Source for go mod cache 2024-11-20 12:37:14 +00:00
source_env.go internal/imports: test Source for go mod cache 2024-11-20 12:37:14 +00:00
source_modindex.go internal/imports: test Source for go mod cache 2024-11-20 12:37:14 +00:00
sourcex_test.go internal/imports: test Source for go mod cache 2024-11-20 12:37:14 +00:00