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-6337] swift build hangs #4924
Comments
Comment by Ian Partridge (JIRA) @aciidb0mb3r here's an example of what we discussed at Swift Summit. |
Comment by Jack Newcombe (JIRA) This occurred for me because git was waiting for user input but the prompt was being swallowed. If you run your build in verbose mode, copy out the command that it hangs on and run it locally to see what the prompt is. In my case it was prompting me to add the github RSA key to the known_hosts file. After accepting the addition, I ran swift build again and it worked fine. |
Comment by Ian Partridge (JIRA) That is a separate issue to this one. This is about package manager spinning during dependency resolution. |
Comment by Addison Webb (JIRA) I am also running into this issue on Ubuntu. Swift 4.1 - swift-4.1-RELEASE-ubuntu16.04 {{Package.swift}} import PackageDescription
let package = Package(
name: "myapp",
products: [
.executable(
name: "myapp",
targets: ["myapp"])
],
dependencies: [
.package(url: "git@github.com:IBM-Swift/Kitura.git", from: "2.0.0")
],
targets: [
.target(
name: "myapp",
dependencies: ["Kitura"]
)
]
) |
Comment by Addison Webb (JIRA) I was able to resolve the issue by changing the package url to: {{https://github.com/IBM-Swift/Kitura.git}} |
Comment by Jack Newcombe (JIRA) addisonwebb (JIRA User) per my comment, try cloning the repo manually once to see if you are prompted to add the host to the authorised list. |
Environment
Swift 4
Additional Detail from JIRA
md5: 3ae013a94fb8b73a07cbfdd44f2f4534
duplicates:
Issue Description:
Package.swift:
Log:
Adding --verbose shows much gitness occurring...
The text was updated successfully, but these errors were encountered: