]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add the Retract field to 'go help mod edit' definition of the GoMod struct
authormarkruler <csu0414@gmail.com>
Tue, 22 Dec 2020 17:22:17 +0000 (17:22 +0000)
committerJay Conrod <jayconrod@google.com>
Wed, 23 Dec 2020 17:26:56 +0000 (17:26 +0000)
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 <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>

src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/edit.go

index c4913ce695456dca0988ffdf30fe40fe9d638098..78f114f6afe3b14d2ca720983576b1f7e8c443ba 100644 (file)
 //             Require []Require
 //             Exclude []Module
 //             Replace []Replace
+//             Retract []Retract
 //     }
 //
 //     type Require struct {
index b203a8a2b0a6f3b19a82bb63e2de8ef807d2c9af..3a406b91fa22a5fb9a7c23d41e25d4e57fb06679 100644 (file)
@@ -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 {