]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add -retract and -dropretract flags to 'go mod edit'
authorJay Conrod <jayconrod@google.com>
Wed, 15 Apr 2020 18:17:08 +0000 (14:17 -0400)
committerJay Conrod <jayconrod@google.com>
Wed, 26 Aug 2020 21:12:55 +0000 (21:12 +0000)
commit0bbd386e8bbdf419077d708d3671245fc0f50f0c
treec79d8378b3212cc4b34d823225a922338a892a63
parentc769f034d796769ad10fc03fe6866b36039d1a09
cmd/go: add -retract and -dropretract flags to 'go mod edit'

'go mod edit' can now add and remove 'retract' directives from go.mod
files.

Also, retractions are now included in the 'go mod edit -json' output.

For #24031

Change-Id: Ife7915e259fa508626d6ec5f786b5c860b489599
Reviewed-on: https://go-review.googlesource.com/c/go/+/228381
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/edit.go
src/cmd/go/testdata/script/mod_edit.txt