Skip to content

Commit 202502a

Browse files
committed
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 <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent c5ac96b commit 202502a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go/packages/external.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818

1919
// Driver
2020
type driverRequest struct {
21-
Command string `json "command"`
21+
Command string `json:"command"`
2222
Mode LoadMode `json:"mode"`
2323
Env []string `json:"env"`
2424
BuildFlags []string `json:"build_flags"`

go/packages/packages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ type Config struct {
137137
BuildFlags []string
138138

139139
// Fset provides source position information for syntax trees and types.
140-
// If Fset is nil, the loader will create a new FileSet.
140+
// If Fset is nil, Load will use a new fileset, but preserve Fset's value.
141141
Fset *token.FileSet
142142

143143
// ParseFile is called to read and parse each file

0 commit comments

Comments
 (0)