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: Implement support for local dependencies #8267

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Feb 13, 2024

  1. test(swiftpm): Re-generate the lockfile of project-with-lockfile

    Reduce the diff of a following change (which will re-generate the
    lockfile as well).
    
    Signed-off-by: Frank Viernau <[email protected]>
    fviernau committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    6642530 View commit details
    Browse the repository at this point in the history
  2. test(swiftpm): Bump the tooling version for project-with-lockfile

    Prepare for adding a `local` dependency, which requires tooling version
    5.7. As that tooling version starts to fail with an error when
    library projects contain `main.swift` files, simpliy rename these files.
    
    Signed-off-by: Frank Viernau <[email protected]>
    fviernau committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    690a508 View commit details
    Browse the repository at this point in the history
  3. feat(swiftpm): Implement handling for local dependencies

    Add a synthetic package with one dependency and make it a `local`
    dependency of the `project-with-localfile`. SwiftPM does not add an
    entry for the local dependency to the lockfile, which is why the
    functions which map from `PinV2` to ORT's model are not updated.
    
    Signed-off-by: Frank Viernau <[email protected]>
    fviernau committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    fbff310 View commit details
    Browse the repository at this point in the history