diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go index ba6b81cbc1..e63f9a2501 100644 --- a/internal/lsp/cache/view.go +++ b/internal/lsp/cache/view.go @@ -407,7 +407,7 @@ func (v *View) RunProcessEnvFunc(ctx context.Context, fn func(*imports.Options) } v.cleanupProcessEnv() } - v.cachedModFileIdentifier = modFH.Identity().Identifier + v.cachedModFileIdentifier = modFileIdentifier v.cachedBuildFlags = currentBuildFlags v.cleanupProcessEnv, err = v.populateProcessEnv(ctx, modFH, sumFH) if err != nil {