Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect relativePaths in local package paths #1498

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

juri
Copy link

@juri juri commented Aug 25, 2024

Before this a local package defined in an included file would not respect relativePaths: true.

This fixes #1497.

This is a breaking change because this changes how paths are resolved.

Before this a local package defined in an included file would not
respect relativePaths: true.

This fixes yonaskolb#1497.
Copy link
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

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

Thank you @juri!
Could you also please add a test by adding a package under packages and also localPackages in tests/fixtures/paths_test and add an expectation to expands directories test in SpecLoadingTests

@@ -241,6 +241,7 @@ extension Project: PathContainer {
.object("aggregateTargets", AggregateTarget.pathProperties),
.object("schemes", Scheme.pathProperties),
.object("projectReferences", ProjectReference.pathProperties),
.object("packages", SwiftPackage.pathProperties)
Copy link
Owner

Choose a reason for hiding this comment

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

Could you add support for localPackages as well

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.

Local package path used in an included file does not respect relativePaths: true
2 participants