swiftlang/swift-package-manager

`swift package-registry <url>` subcommand has inconsistent behaviro

Opened this issue · 0 comments

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

I don't really have much time to describe this, but I'll go ahead and says this. When I use swift package-registry <url> and input a token after being prompted, the token doesn't get forwarded in the Authorization header. However, when I do swift package-registry <url> --token foo it does.

Expected behavior

Consistency between the two scenarios.

Actual behavior

Being prompted for a token doesn't set it in the authorization header.

Steps to reproduce

No response

Swift Package Manager version/commit hash

5.10

Swift & OS version (output of swift --version ; uname -a)

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)