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: use appropriate libcosmic patch URL for cargo #55

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

lilyinstarlight
Copy link
Contributor

@lilyinstarlight lilyinstarlight commented Aug 31, 2024

See ed9ea6c#r145966372 (cc @mmstick)

This fixes Cargo recording invalid URLs in the lockfile and not correctly finding the dependency when using cargo vendor (since cargo build --offline would not work with vendored sources with invalid URLs)

It uses a URL that follows the Cargo.toml specification, but still works around rust-lang/cargo#10756

Other COSMIC projects are already using this workaround:

https://github.com/pop-os/cosmic-settings/blob/a46587fb6e945b9e213a337bbe3df14acacccae5/Cargo.toml#L53-L54
https://github.com/pop-os/xdg-shell-wrapper/blob/b5480042615ecfcf30262d5a40625e8f430b474a/Cargo.toml#L44-L48
https://github.com/pop-os/cosmic-comp/blob/536484e9dae289cc5590d35e18096ba24e7d0f1f/Cargo.toml#L118-L119

This fixes Cargo recording valid URLs in the lockfile and correctly
finding the dependency when using `cargo vendor` (otherwise `cargo build
--offline` will not work with vendored sources).

It uses a URL that follows the Cargo.toml specification, but still works
around <rust-lang/cargo#10756>.
@mmstick mmstick merged commit b327d37 into pop-os:master Aug 31, 2024
1 check passed
@mmstick
Copy link
Member

mmstick commented Aug 31, 2024

Thanks!

@lilyinstarlight lilyinstarlight deleted the fix/cargo-vendor branch August 31, 2024 19:12
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