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

swift package add-dependency does not validate URLs #7757

Open
MahdiBM opened this issue Jul 5, 2024 · 0 comments
Open

swift package add-dependency does not validate URLs #7757

MahdiBM opened this issue Jul 5, 2024 · 0 comments

Comments

@MahdiBM
Copy link

MahdiBM commented Jul 5, 2024

Description

As the title says.

Expected behavior

URLs should be validated.

Actual behavior

URLs are not validated which results in invalid code.

Steps to reproduce

swift package add-dependency DiscordBM --from 1.12.0

Results in:

.package(url: "DiscordBM", from: "1.12.0"),

Note url: "DiscordBM" which is invalid.

Swift Package Manager version/commit hash

~ swift package --version                             
Swift Package Manager - Swift 6.0.0-dev

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

swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx15.0
Darwin ---.local 24.0.0 Darwin Kernel Version 24.0.0: ---; root:xnu-11215.0.115.501.3~1/RELEASE_ARM64_T6000 arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant