-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caveats: * allows for dependency bleed between different go modules in the workspace - this is sorta by design for this stepping stone, but is far from ideal * doesn't support replace statements in go.work yet (but that shouldn't be to hard to add) continue the megahack experiment: handle replace in go.work Lets provide a warning if differing versions are discovered Improve duplicate Version Warning Message * include both core + meta version segments in warning. 0.0.0 vs 0.0.0 isn't useful * include label were offending versions reside ensure error message is valid for all three scenarios 1) if external dependencies are out of sync, and something go work sync can handle, inform the user to run `go work sync` 2) if in-repo dependencies managed by go.work are out of sync inform the user to manually correct 3) if external dependencies have the same core version, but a different meta version tell the user to manually correct transition warning to error and touchup message Add tests for handling go.work files These tests aren't exhaustive, but they match the testing done for go.mod files. In the future, it would likely be good to add additional more comprehensive tests.
- Loading branch information
1 parent
ec1591c
commit d0dc074
Showing
23 changed files
with
564 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.4.0 |
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
Oops, something went wrong.