-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/gorelease: support comparing replacement modules
Downloaded modules (currently, those fetched according to the -base flag) may now have module paths in go.mod different than the module path used to fetch them with 'go mod download'. This lets gorelease compare modules that have been copied to another location (e.g., a soft fork). The module path in go.mod is used when loading packages. Fixes golang/go#39666 Change-Id: I33bbdab3fe5c4374f749fb965e9cc7339a1f6a8f Reviewed-on: https://go-review.googlesource.com/c/exp/+/277116 Trust: Jay Conrod <[email protected]> Trust: Jean de Klerk <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Jean de Klerk <[email protected]>
- Loading branch information
Jay Conrod
committed
Dec 15, 2020
1 parent
a20c86d
commit b5a6e24
Showing
3 changed files
with
70 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Compare a fork (with module path example.com/basic, downloaded from | ||
# example.com/basicfork) with a local module (with module path | ||
# example.com/basic). | ||
mod=example.com/basic | ||
version=v1.1.2 | ||
base=example.com/[email protected] | ||
release=v1.1.2 | ||
-- want -- | ||
example.com/basicfork/a | ||
----------------------- | ||
Incompatible changes: | ||
- A3: removed | ||
|
||
example.com/basicfork/b | ||
----------------------- | ||
Incompatible changes: | ||
- package removed |