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

[SR-3981] Using private repository for editable package #5103

Closed
swift-ci opened this issue Feb 17, 2017 · 2 comments
Closed

[SR-3981] Using private repository for editable package #5103

swift-ci opened this issue Feb 17, 2017 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-3981
Radar rdar://problem/30661854
Original Reporter baujla (JIRA User)
Type Bug
Status Closed
Resolution Duplicate

Attachment: Download

Environment

Ubuntu 16.04 LTS Swift 3.1.0-dev

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 007c3817809d1eaf6e25b09d5c980a73

duplicates:

  • SR-6735 github fetch silently stuck waiting for ssh passphrase

is duplicated by:

relates to:

  • SR-4621 [PackageManager] Package fetch with authentication broken.

Issue Description:

When executing the edit command in Swift PM, the program will hang if the git repository of the package is private.

In my case i used the command: swift package edit foo --branch dev and after that i am prompted for my git username. Once my username is inputted the program indefinitely hangs and becomes unresponsive. The same issue arises on every other private repository i have tested with.

If the edit command does not currently support private repositories it would be helpful if the program outputted an error message when trying to do this.

One should be able to reproduce this bug on any private repository. I did it on https://github.com/baujla/foo.git, which has since been changed to public for more testing.

swift build -v output
/swift-dev/usr/bin/swiftc -module-name foo2 -incremental -emit-dependencies -emit-module -emit-module-path /home/baujla/test_edit_packages/.build/debug/foo2.swiftmodule -output-file-map /home/baujla/test_edit_packages/.build/debug/foo2.build/output-file-map.json -parse-as-library -num-threads 8 -c /home/baujla/test_edit_packages/.build/checkouts/foo2.git-685208967254493579/Sources/foo2.swift -I /home/baujla/test_edit_packages/.build/debug -Onone -g -enable-testing -j8 -DSWIFT_PACKAGE -module-cache-path /home/baujla/test_edit_packages/.build/debug/ModuleCache
/swift-dev/usr/bin/swiftc -module-name foo -incremental -emit-dependencies -emit-module -emit-module-path /home/baujla/test_edit_packages/.build/debug/foo.swiftmodule -output-file-map /home/baujla/test_edit_packages/.build/debug/foo.build/output-file-map.json -parse-as-library -num-threads 8 -c /home/baujla/test_edit_packages/.build/checkouts/foo.git-720521481390304339/Sources/foo.swift -I /home/baujla/test_edit_packages/.build/debug -Onone -g -enable-testing -j8 -DSWIFT_PACKAGE -module-cache-path /home/baujla/test_edit_packages/.build/debug/ModuleCache

@ankitspd
Copy link
Member

#959

@ankitspd
Copy link
Member

ankitspd commented Mar 6, 2017

Disabling taking user input for now #1001

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants