-
Couldn't load subscription status.
- Fork 36
Add local packages structure logic #232
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ struct XCPackageMapper: XCPackageMapping { | |
| func map(package: XCLocalSwiftPackageReference, sourceDirectory: AbsolutePath) throws -> Package { | ||
| let relativePath = try RelativePath(validating: package.relativePath) | ||
| let path = sourceDirectory.appending(relativePath) | ||
| return .local(path: path) | ||
| return .local(path: path, groupPath: nil) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't we get |
||
| } | ||
|
|
||
| // MARK: - Private Helpers | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,7 +97,7 @@ struct PBXProjectMapper: PBXProjectMapping { | |
| } | ||
| let localPackages = try pbxProject.localPackages.compactMap { | ||
| try packageMapper.map(package: $0, sourceDirectory: sourceDirectory) | ||
| } + localPackagePaths.map { .local(path: $0) } | ||
| } + localPackagePaths.map { .local(path: $0, groupPath: nil) } | ||
|
||
|
|
||
| // Create a files group for the main group | ||
| let filesGroup = ProjectGroup.group(name: pbxProject.mainGroup?.name ?? "Project") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider propagating groupPath information if available to support structured folder logic, rather than defaulting to nil.