From: markruler Date: Tue, 22 Dec 2020 17:22:17 +0000 (+0000) Subject: cmd/go: add the Retract field to 'go help mod edit' definition of the GoMod struct X-Git-Tag: go1.16rc1~144 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=30c99cbb7a7bd795a772bbc0f32a1266d86b29bb;p=gostls13.git cmd/go: add the Retract field to 'go help mod edit' definition of the GoMod struct Fixes #43281 Change-Id: Ife26ca174a8818b56aaea9547976d97978478a5f GitHub-Last-Rev: 85a3d30001672b371a58d1c8a2092fc9b937af6f GitHub-Pull-Request: golang/go#43315 Reviewed-on: https://go-review.googlesource.com/c/go/+/279592 Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot Reviewed-by: Jay Conrod Reviewed-by: Bryan C. Mills Trust: Jay Conrod --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index c4913ce695..78f114f6af 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1192,6 +1192,7 @@ // Require []Require // Exclude []Module // Replace []Replace +// Retract []Retract // } // // type Require struct { diff --git a/src/cmd/go/internal/modcmd/edit.go b/src/cmd/go/internal/modcmd/edit.go index b203a8a2b0..3a406b91fa 100644 --- a/src/cmd/go/internal/modcmd/edit.go +++ b/src/cmd/go/internal/modcmd/edit.go @@ -95,6 +95,7 @@ writing it back to go.mod. The JSON output corresponds to these Go types: Require []Require Exclude []Module Replace []Replace + Retract []Retract } type Require struct {