Skip to content

Conversation

target-san
Copy link

Fixes #7992

This PR is a re-application of @francis-starlab 's !9592 , so all credits go to him

GIt allows submodules to have relative URLs, but cargo does not handle this correctly, and simply fails to update submodules as described in issue #7992. This PR fixes that by passing in the parent git repo url to update_submodules.

Original fix fails on Windows due to collision of std::fs::canonicalize and URL paths obtained from files:// schema, specifically paths like /C:/... which are obviously deemed incorrect. Will look for solution and post it soon.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @weihanglo (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 17, 2022
@x-hgg-x
Copy link
Contributor

x-hgg-x commented Sep 17, 2022

For information, I have created the same PR in #11106, which resolves all the problems on Windows.
(I didn't see your PR before submitting mine.)

@target-san
Copy link
Author

@x-hgg-x
sigh Well, you're definitely closer than me to being reviewed and merged.

Closing this one in favor of #11106

@target-san target-san closed this Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submodules with relative paths
4 participants