From 202502a5a9245830b5ec7b877e26b67760da8e67 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Tue, 2 Apr 2019 15:54:42 -0400 Subject: go/packages: fix json struct tag on driverRequest.Command Fixes golang/go#31181 Change-Id: I99bceb66809ed66393cc8e8deb5b82b8429ca337 Reviewed-on: https://go-review.googlesource.com/c/tools/+/170477 Run-TryBot: Michael Matloob Reviewed-by: Rebecca Stambler TryBot-Result: Gobot Gobot --- go/packages/external.go | 2 +- go/packages/packages.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/packages/external.go b/go/packages/external.go index 860c3ec15..22ff769ef 100644 --- a/go/packages/external.go +++ b/go/packages/external.go @@ -18,7 +18,7 @@ import ( // Driver type driverRequest struct { - Command string `json "command"` + Command string `json:"command"` Mode LoadMode `json:"mode"` Env []string `json:"env"` BuildFlags []string `json:"build_flags"` diff --git a/go/packages/packages.go b/go/packages/packages.go index 7d0198ff9..b0e827fb6 100644 --- a/go/packages/packages.go +++ b/go/packages/packages.go @@ -137,7 +137,7 @@ type Config struct { BuildFlags []string // Fset provides source position information for syntax trees and types. - // If Fset is nil, the loader will create a new FileSet. + // If Fset is nil, Load will use a new fileset, but preserve Fset's value. Fset *token.FileSet // ParseFile is called to read and parse each file -- cgit v1.2.3