-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/load: consistently use canonical import paths to load packages
Otherwise trying to load an import path with an unnecessary qualifier, such as "mod.com/x:x", would be added to the map of known packages under its canonical form "mod.com/x", but we would do the lookup based on the original non-canonical import path, not finding a match. Add reminders to the relevant places about the paths being canonical, and use a separate variable for unqualified import paths for clarity. The use of unqualified paths seems wrong to me too, so add a TODO. Fixes #3162. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ifc748ce61420f501b08216662b647e5475822593 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195530 Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
5 changed files
with
39 additions
and
19 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