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

SwiftPM: Make the model file dedicated for just the model and its parsing #8221

Merged
merged 7 commits into from
Feb 2, 2024

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented Feb 2, 2024

This separates concerns, and ensures we have SwiftPmModel only be about the upstream data model and its parsing.
Mapping this to ORT's model is moved out to the package manager implementation, which makes it easier to change that mapping in following changes.

See individual commits.

Part of: #8167.

@fviernau fviernau requested a review from a team as a code owner February 2, 2024 13:34
@fviernau fviernau force-pushed the swiftpm-separate-model-mapping-from-model branch from 81a41e6 to 168593c Compare February 2, 2024 13:57
Separate model mapping from parsing the model, to prepare making the
package creating take both, lockfile entries and `swift package
show-dependencies` entries, as input.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
The function is more closely related to the model. Apply the now
possible visibility scope reductions.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Encapsulate the `json` instance within the model file.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Make `SwiftPmModel` dedicated to just the upstream swift models and
it's parsing, by moving the mapping to ORT's model into `SwiftPM`. This
simplifies refactoring and improves encapsulation as visibility can be
reduced.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
Move the public ones to the top.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
This is also part of mapping the upstream model to ORT's model. So,
move it next to the related code.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
@fviernau fviernau force-pushed the swiftpm-separate-model-mapping-from-model branch from 168593c to f2e8bd0 Compare February 2, 2024 15:08
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
@fviernau fviernau merged commit 38709a7 into main Feb 2, 2024
19 checks passed
@fviernau fviernau deleted the swiftpm-separate-model-mapping-from-model branch February 2, 2024 15:58
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.

None yet

2 participants