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

Fails to locate local swift packages #24

Open
markst opened this issue Aug 28, 2023 · 3 comments
Open

Fails to locate local swift packages #24

markst opened this issue Aug 28, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@markst
Copy link

markst commented Aug 28, 2023

What happened?

Error: App depends on Media Player but the dependency was not found in the graph.

What are the steps to reproduce?

Use local Swift Packages with dependencies on other local packages

What is the expected behavior?

Dependency graph should interpret local package nodes.

@markst markst added the bug Something isn't working label Aug 28, 2023
@simonbs
Copy link
Owner

simonbs commented Aug 30, 2023

@markst Thanks for opening the issue. Can you provide a sample Package.swift file to reproduce this?

@markst
Copy link
Author

markst commented Jan 11, 2024

I've put together a project to reproduce:
DependencyDemo.zip

@markst
Copy link
Author

markst commented Jan 11, 2024

Does seem that it may be due to the location of the package being nested with a directory.
For instance if I move the package up a level:
image

my output is as follows:

digraph g {
  layout=dot
  rankdir=LR

  subgraph cluster_package_MyLibrary {
    label="MyLibrary"
    packageProduct_MyLibrary [label="MyLibrary", shape=ellipse]
    target_MyLibrary [label="MyLibrary", shape=box]
    target_MyLibraryTests [label="MyLibraryTests", shape=box]
  }

  subgraph cluster_project_DependencyDemoxcodeproj {
    label="DependencyDemo.xcodeproj"
    target_DependencyDemo [label="DependencyDemo", shape=box]
  }

  packageProduct_MyLibrary -> target_MyLibrary
  target_MyLibraryTests -> target_MyLibrary
  target_DependencyDemo -> packageProduct_MyLibrary
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants