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

Remove rust as a submodule #183

Merged
merged 1 commit into from
Jul 10, 2017
Merged

Remove rust as a submodule #183

merged 1 commit into from
Jul 10, 2017

Conversation

alexcrichton
Copy link
Collaborator

This removes the tests/rust submodule and instead moves to lazily cloning it
during tests. This helps work around the fact that git dependencies on syn
will pull in all submodules, and rust takes forever to clone. In short, the
intention here is to make git dependencies on syn bearable to avoid Cargo
auto-cloning submodules.

This removes the `tests/rust` submodule and instead moves to lazily cloning it
during tests. This helps work around the fact that git dependencies on `syn`
will pull in all submodules, and rust takes forever to clone. In short, the
intention here is to make git dependencies on `syn` bearable to avoid Cargo
auto-cloning submodules.
@alexcrichton alexcrichton mentioned this pull request Jul 8, 2017
@mystor
Copy link
Collaborator

mystor commented Jul 8, 2017

This is a very good idea :).

I was going to suggest only shallow-cloning the repository so it clones faster, but it seems like that's a tad tricky to do as you can't shallow-clone based on a commit.

Perhaps we could skip git cloning at all, and just download a zip with the repo at that commit from github (like https://github.com/rust-lang/rust/archive/ddc5d7bd4b9ea3e8a8ccf82cb443e950be311d61.zip), unzip that, and use it?

@alexcrichton
Copy link
Collaborator Author

This is typically only run on builders so I figured it wasn't worth the 30 or so seconds saved for going out of our way to get shallow clones working.

@alexcrichton
Copy link
Collaborator Author

r? @mystor

Copy link
Collaborator

@mystor mystor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I don't think we need to do anything fancy to make running this test locally easier :).

@mystor mystor merged commit 5aae682 into dtolnay:master Jul 10, 2017
Repository owner locked and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants