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
[SR-4554] The command "swift package describe" should not fetch dependencies #5038
Comments
the command shows the entire depth history of the packages and dependencies - are you asserting it should only show "the first layer" (The details that are otherwise just in the manifest or pins file) if the dependencies havent been fully resolved? |
Comment by Toni Suter (JIRA) Maybe I am missing something. But when I create a project with the following // swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "MyProject",
dependencies: [
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1, minor: 6)
]
) And when I now run the command
This output contains nothing about the dependencies, right? |
Hey tonisuter (JIRA User), sorry - my mistake. I was thinking of
I was confusing the two commands in my head when I was scanning open bugs yesterday. For what it's worth, Is the process causing you problems, or are you reporting this because it's doing potentially needless work for that specific outcome? |
We need a separate method to load just the root packages so we avoid unnecessary work. |
Comment by Toni Suter (JIRA) No problem :-) I am currently working on an Eclipse-based Swift IDE (https://www.tifig.net/) which uses the Swift Package Manager as its build system. In order to be able to correctly index a project, the IDE needs to know about all the packages and all the modules in the project. So I thought I could use the Swift Package Manager to obtain that information. Basically, I wanted to first call Going back to my previous example, the process would look like this:
I hope my explanation makes sense :-) |
tonisuter (JIRA User) In that case, it is better to use libSwiftPM. It is basically package manager as a framework, so it can be integrated into various IDEs. If you want to have a quick chat sometime, you can join our slack: http://swift-package-manager.herokuapp.com |
Comment by Toni Suter (JIRA) Thanks @aciidb0mb3r![]( That looks interesting. I will certainly have a look at that) |
This is done with the new "package resolve" command |
Environment
Apple Swift version 3.1 (swiftlang-802.0.51 clang-802.0.41)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: a5f2a9e569e5e7f476f1d2d659a6fd15
Issue Description:
The Swift Package Manager command
swift package describe
lists all modules of the current package. However, if a package's dependencies haven't been downloaded yet, the commandswift package describe
will fetch them first. This should not be necessary, because the information to describe the current package can be obtained from the file structure.The text was updated successfully, but these errors were encountered: