Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@myitcv
Copy link
Contributor

@myitcv myitcv commented Mar 22, 2021

Finding a cue.mod directory indicates we have found a module. Currently,
we continue to recurse into a cue.mod directory to find other modules.
However, this is not correct from the perspective of unity: any modules
we find within cue.mod/{gen,pkg,usr} will only ever be modules vendored
as dependencies of the module we have just found, which from unity's
perspective is not what we are after.

Therefore skip cue.mod directories themselves.

Fixes #59

Finding a cue.mod directory indicates we have found a module. Currently,
we continue to recurse into a cue.mod directory to find other modules.
However, this is not correct from the perspective of unity: any modules
we find within cue.mod/{gen,pkg,usr} will only ever be modules vendored
as dependencies of the module we have just found, which from unity's
perspective is not what we are after.

Therefore skip cue.mod directories themselves.

Fixes #59
@myitcv
Copy link
Contributor Author

myitcv commented Mar 22, 2021

cc @eonpatapon

@myitcv myitcv merged commit f575261 into main Mar 22, 2021
@myitcv myitcv deleted the cmd_unity_do_not_recurse_into_modules branch March 22, 2021 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

cmd/unity: project mode bug when a cue.mod vendored dependency is a module

2 participants