Skip to content

Commit

Permalink
Revert "internal/lsp/cache: disable GOPACKAGESDRIVER"
Browse files Browse the repository at this point in the history
This reverts commit 092357f.
  • Loading branch information
steeve committed Apr 3, 2021
1 parent 8c34cc9 commit 0df6c91
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/lsp/cache/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,10 @@ func (s *snapshot) config(ctx context.Context, inv *gocommand.Invocation) *packa
verboseOutput := s.view.options.VerboseOutput
s.view.optionsMu.Unlock()

// Forcibly disable GOPACKAGESDRIVER. It's incompatible with the
// packagesinternal APIs we use, and we really only support the go command
// anyway.
env := append(append([]string{}, inv.Env...), "GOPACKAGESDRIVER=off")
cfg := &packages.Config{
Context: ctx,
Dir: inv.WorkingDir,
Env: env,
Env: inv.Env,
BuildFlags: inv.BuildFlags,
Mode: packages.NeedName |
packages.NeedFiles |
Expand Down

0 comments on commit 0df6c91

Please sign in to comment.