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

SwiftPM Resolve ignore HTTP_PROXY env when fetch artifacts #7470

Open
1 task done
Ernest0-Production opened this issue Apr 18, 2024 · 0 comments
Open
1 task done

SwiftPM Resolve ignore HTTP_PROXY env when fetch artifacts #7470

Ernest0-Production opened this issue Apr 18, 2024 · 0 comments
Labels

Comments

@Ernest0-Production
Copy link

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

  • Confirmed reproduction steps with SwiftPM CLI.

Description

When fetch binaryTarget artifacts via HTTP, I get the error:

downloadError("The network connection was lost.")

Setting the proxy parameters no_proxy & http(s)_proxy does not affect the process in any way

Expected behavior

Success fetching through proxy

Actual behavior

error: failed downloading 'https://artifactory/dependency-binaries/mySDK-iOS-3.6.13.zip' which is required by binary target 'MYSDK-iOS-binary': downloadError("The network connection was lost.")
error: fatalError

Steps to reproduce

Swift Package Manager version/commit hash

5.9

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)
Target: arm64-apple-macosx14.0
Darwin Ernest0-M1.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103 arm64

@MaxDesiatov MaxDesiatov changed the title SPM Resolve ignore HTTP_PROXY env when fetch artifacts SwiftPM Resolve ignore HTTP_PROXY env when fetch artifacts Apr 18, 2024
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

1 participant