You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Attachment: Download
Environment
Ubuntu 16.04 LTS Swift 3.1.0-dev
Additional Detail from JIRA
md5: 007c3817809d1eaf6e25b09d5c980a73
duplicates:
is duplicated by:
relates to:
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
The text was updated successfully, but these errors were encountered: