-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go/internal/modfile: allow, prefer unquoted strings in mod files
Before, module paths and directory names were always quoted and versions were never quoted. Now, either may be quoted, but the canonical form is to omit quotation marks wherever possible. Fixes golang/go#24641. Change-Id: I3bde7356ae34a78f4eb7c0e95807bc11d12b9ffd Reviewed-on: https://go-review.googlesource.com/105215 Reviewed-by: Bryan C. Mills <bcmills@google.com>
- Loading branch information
Showing
10 changed files
with
136 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module "abc" | ||
module abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module "abc" | ||
module abc | ||
|
||
replace "xyz" v1.2.3 => "/tmp/z" | ||
replace xyz v1.2.3 => /tmp/z | ||
|
||
replace "xyz" v1.3.4 => "my/xyz" v1.3.4-me | ||
replace xyz v1.3.4 => my/xyz v1.3.4-me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
module "abc" | ||
module abc | ||
|
||
replace ( | ||
"xyz" v1.2.3 => "/tmp/z" | ||
"xyz" v1.3.4 => "my/xyz" v1.3.4-me | ||
xyz v1.2.3 => /tmp/z | ||
xyz v1.3.4 => my/xyz v1.3.4-me | ||
xyz v1.4.5 => "/tmp/my dir" | ||
xyz v1.5.6 => my/xyz v1.5.6 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters