Skip to content

Binary dependency on Linux always fails to download with NSURLErrorTimedOut #7288

Open
@judemille

Description

@judemille

Description

I'm writing an experimental package in which I would like to use SwiftLint. Given it's cross-platform, I figured I would use it via SwiftPM. SwiftLint has a binary dependency in its manifest for the case in which it is being run on a Mac, so it can use a pre-compiled version. Whether this is a good idea is a different question, but it puts me in a bad position. I can download the file manually, but SwiftPM hangs for a while and errors.

Expected behavior

My package gets its dependencies and builds.

Actual behavior

image

Steps to reproduce

  1. Create a package depending on SwiftLint.
  2. Attempt to build it on Linux.

Swift Package Manager version/commit hash

Swift Package Manager - Swift 5.10.0-dev

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

Swift version 5.10-dev (LLVM e8e5be8d5b39f46, Swift 99e9db868aefd99)
Target: x86_64-unknown-linux-gnu

(This also occurs on 5.9.2. I switched to 5.10-dev to see if it was fixed.)

Linux J-failbox-AR 6.6.9-1-ck-generic-v3 #1 SMP PREEMPT_DYNAMIC Tue Jan 2 15:26:54 EST 2024 x86_64 GNU/Linux

My distro should be irrelevant to the problem at hand here. I can attempt to recreate on another distro if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions