-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/mod/modimports: include files from parent directories
CUE supports packages that span multiple directories. When determining the set of packages to load, we need to consider parent directories too. Also change the `AllModuleFiles` logic so that it guarantees that all the files in a directory will be adjacent in the iteration. This means that a consumer needs to maintain less state when doing per-package logic - it can discard any state for a directory when it see that the iteration has moved to a different directory. For #3155 Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Id342ccc9f4505cfcfb183dde49e8aed71a1fe596 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195280 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information
Showing
4 changed files
with
104 additions
and
26 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