-
Notifications
You must be signed in to change notification settings - Fork 62
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
build.rs fails, when the shaderc-rs package from crates.io is used (not a git checkout) #15
Comments
Workaround: tell cargo to checkout the repository like this:
|
I think the solution to this is to remove the git submodule updates from the build script. Other crates that use submodules don't do submodule updates in build scripts - they rely on the user to do that as and when necessary (typically doing |
Thanks for reporting! I've noticed the error on docs.rs, and thought it's because not issuing Previously it was OK when using I still like to avoid to require the user to do an additional @dylanede: If manual check out is required for a crate, you cannot easily use that crate as an dependency for another project? |
Oh, wait, it seems |
I've #16 up. Hopefully it will solve the problem. |
With crates in the crates.io registry, Cargo doesn't use git at all. The crates are just a collection of source files kept in the registry that match what you tell What is affected by git is when the crate is specified as a dependency using |
@dylanede: Ah, that makes sense! Thanks for the explanation! I checked the |
@HellButcher: v0.3.2 should have fixed the problem. Thanks! :) |
build.rs
fails with the following error-message, when shaderc-rs is included as a dependency in a project.I guess a solution would be, to call
git submodule update
only, if there is a.git
directoryThe text was updated successfully, but these errors were encountered: