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-11305] SPM doesn't support GIT remote helpers #4677

Open
swift-ci opened this issue Aug 14, 2019 · 4 comments
Open

[SR-11305] SPM doesn't support GIT remote helpers #4677

swift-ci opened this issue Aug 14, 2019 · 4 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-11305
Radar rdar://problem/54311332
Original Reporter helge (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: ca14b55c092bcc9bd1bd8698d354bb2e

Issue Description:

```

dependencies: [
.package(url: "gcrypt::~/Dropbox/Repositories/ZeeQLExpress3.git",
from: "0.2.0")
],

```

```

helge@Zini18 ZeeQLExpress3 (develop)$ git remote -v

origin gcrypt::~/Dropbox/Repositories/ZeeQLExpress3.git (fetch)

origin gcrypt::~/Dropbox/Repositories/ZeeQLExpress3.git (push)

```

```

helge@Zini18 ApacheExpressAdmin (develop)*$ swift build

Fetching /Users/helge/dev/Swift/Apex3/ApacheExpressAdmin/gcrypt::/Users/helge/Dropbox/Repositories/ZeeQLExpress3.git

error: failed to clone; Cloning into bare repository '/Users/helge/dev/Swift/Apex3/ApacheExpressAdmin/.build/repositories/ZeeQLExpress3-aa20629b'...

fatal: '/Users/helge/dev/Swift/Apex3/ApacheExpressAdmin/gcrypt::/Users/helge/Dropbox/Repositories/ZeeQLExpress3.git' does not appear to be a git repository

fatal: Could not read from remote repository.

```

Presumably this is due to the misconception that GIT remotes have to be valid URLs.

@ankitspd
Copy link
Member

Hmm, that error message is from the git tool.

@swift-ci
Copy link
Contributor Author

Comment by Helge Heß (JIRA)

I suspect that SPM (incorrectly) tries to parse the "URL" and passes the result to git? As you can see it attempts to treat the gcrypt "url" as a filesystem path.

Parsing GIT remotes as standard URLs is not sound for the remote helpers reason.

@ankitspd
Copy link
Member

Hmm, I thought we only normalized relative URLs but maybe not.

@ankitspd
Copy link
Member

@swift-ci create

@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
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

3 participants