Skip to content

Comments

Fix add-path based development workflow#2526

Merged
Geod24 merged 3 commits intomasterfrom
add_path_workflow
Nov 7, 2022
Merged

Fix add-path based development workflow#2526
Geod24 merged 3 commits intomasterfrom
add_path_workflow

Conversation

@s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Nov 4, 2022

The logic that locally checked out packages added using add-path take precedence and don't follow the strict matching rules got broken again due to a recent change. It should be noted that this fix requires a call to PackageManager.refresh(), which will, in order to get the anticipated performance improvement, probably need to be the target for a more fine-grained approach, where only the cache directory is skipped during package scanning instead of everything.

@s-ludwig s-ludwig added the WIP label Nov 4, 2022
@s-ludwig s-ludwig force-pushed the add_path_workflow branch 2 times, most recently from 222d666 to ff2b2fd Compare November 4, 2022 16:17
Copy link
Member

@Geod24 Geod24 left a comment

Choose a reason for hiding this comment

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

It's pretty bad that we need to scan all possible packages on the system for a specific feature, but at least the next time I try it a test will break.

@Geod24 Geod24 merged commit 2c8e75b into master Nov 7, 2022
@Geod24 Geod24 deleted the add_path_workflow branch November 7, 2022 07:59
@nordlow
Copy link
Contributor

nordlow commented Nov 7, 2022

Does this regress the performance of lookup?

@s-ludwig
Copy link
Member Author

s-ludwig commented Nov 7, 2022

@nordlow There was a functional regression introduced by the performance optimization, not the other way around. Should be back to where it was before now (unfortunately).

@Geod24 We should really look into splitting up the add-path scanning and the cache scanning anyway, as both kinds of packages currently share the same array kind of awkwardly. Then it would at least be straight forward to skip the cache scanning part. The add-path part is then basically "pay for what you actually use".

Geod24 added a commit to Geod24/dub that referenced this pull request Jun 4, 2024
This was introduced in dlang#2526, however it has been superseded
by 1acfe7b .
Since the unittest version does not require cleanup and is simpler
to run, we can remove the shell version.
dlang-bot pushed a commit that referenced this pull request Jun 4, 2024
This was introduced in #2526, however it has been superseded
by 1acfe7b .
Since the unittest version does not require cleanup and is simpler
to run, we can remove the shell version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants