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

Fix repository field in Cargo.toml #1373

Merged

Conversation

link2xt
Copy link
Contributor

@link2xt link2xt commented Mar 31, 2024

According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field
repository is a source repository URL.
GitHub URLs with tree are not repository URLs
and are not usable as git clone arguments.

Path within the worktree
is encoded in .cargo_vcs_info.json of the crate,
so encoding it in Cargo.toml is not necessary.

I am automating downloading of crate sources
and invalid URLs require workarounds
to turn them into repository URLs that can be cloned.

@tarcieri
Copy link
Member

tarcieri commented Mar 31, 2024

Path within the worktree is encoded in .cargo_vcs_info.json of the crate, so encoding it in Cargo.toml is not necessary.

...but that's not displayed on crates.io.

It would be nice to retain the direct links to the actual subdirectory containing the package somewhere that generates a clickable link on crates.io. Perhaps homepage?

@link2xt link2xt force-pushed the link2xt/fix-cargo-toml-repository branch from 5560b84 to 6ceac8c Compare March 31, 2024 19:34
@link2xt
Copy link
Contributor Author

link2xt commented Mar 31, 2024

I moved old URLs to homepage.

der/derive/Cargo.toml Outdated Show resolved Hide resolved
@link2xt link2xt force-pushed the link2xt/fix-cargo-toml-repository branch 2 times, most recently from 4fea6e4 to 65ce901 Compare March 31, 2024 19:41
According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field
`repository` is a source repository URL.
GitHub URLs with `tree` are not repository URLs
and are not usable as `git clone` arguments.

Path within the worktree
is encoded in `.cargo_vcs_info.json` of the crate,
so encoding it in `Cargo.toml` is not necessary.

I am automating downloading of crate sources
and invalid URLs require workarounds
to turn them into repository URLs that can be cloned.
@link2xt link2xt force-pushed the link2xt/fix-cargo-toml-repository branch from 65ce901 to 2cd4eeb Compare March 31, 2024 19:42
@tarcieri tarcieri merged commit 0898cfe into RustCrypto:master Mar 31, 2024
164 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants