]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modcmd: assign module's path and version to fileJSON when modFile...
authorUdalov Max <re.udalov@gmail.com>
Tue, 23 Apr 2019 09:53:35 +0000 (12:53 +0300)
committerJay Conrod <jayconrod@google.com>
Wed, 24 Apr 2019 00:09:18 +0000 (00:09 +0000)
commitde050717f1b668dfd196f1dc4d18c77d03f3afb4
tree5d5929e298124e4e91b3915c7045f827f96f4762
parent601eee39de1f9d215274f54d57af80ee163e11f1
cmd/go/internal/modcmd: assign module's path and version to fileJSON when modFile's module statement exists

Fixes panic on nil pointer dereference error when assigning module's path and version pair to fileJSON.

Fixes #31623

Change-Id: I3f61122ba0676a1270d3ad98900af8c8e9c90935
Reviewed-on: https://go-review.googlesource.com/c/go/+/173397
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modcmd/edit.go
src/cmd/go/testdata/script/mod_edit.txt