Skip to content

Respect relativePaths in local package paths#1498

Merged
yonaskolb merged 3 commits into
yonaskolb:masterfrom
juri:fix-local-package-relative-path
Dec 29, 2024
Merged

Respect relativePaths in local package paths#1498
yonaskolb merged 3 commits into
yonaskolb:masterfrom
juri:fix-local-package-relative-path

Conversation

@juri
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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

Comment thread Sources/ProjectSpec/Project.swift Outdated
.object("aggregateTargets", AggregateTarget.pathProperties),
.object("schemes", Scheme.pathProperties),
.object("projectReferences", ProjectReference.pathProperties),
.object("packages", SwiftPackage.pathProperties)
Copy link
Copy Markdown
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

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I've added this in another commit

Copy link
Copy Markdown
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.

Thanks @juri

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