这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@liam923
Copy link
Contributor

@liam923 liam923 commented Sep 27, 2024

Short-paths currently doesn't understand hidden dependencies. This PR makes short-paths prefer a module path that does not rely on a hidden dependency over one with a hidden dependency, even if it is longer.

@liam923 liam923 requested a review from goldfirere September 27, 2024 22:26
depends : string list;
alias_depends : string list;
desc : Desc.Module.t;
visibility : Desc.module_visibility;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you actually need to add a new field to be threaded around here? IIRC the only effect of the deprecated field is to treat the module as hidden. Perhaps you could just rename the deprecated field to visibility instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose not. I left it in to make it easier if we ever want to do something different. But that would be easy to undo, so I'll remove it.

@liam923 liam923 merged commit 0a21663 into main Oct 8, 2024
1 of 2 checks passed
@liam923 liam923 deleted the short-paths-no-hidden branch October 8, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants