Comments (8)
Workaround: tell cargo to checkout the repository like this:
[build-dependencies]
shaderc = { version = "0.3.1", git="https://github.com/google/shaderc-rs", tag="v0.3.1" }
from shaderc-rs.
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 git clone --recursive
when initially checking out the repository then manual submodule updates as and when necessary).
from shaderc-rs.
Thanks for reporting!
I've noticed the error on docs.rs, and thought it's because not issuing git submodule
in the project root directory. So pushed out v0.3.1. It seems the problem persists.
Previously it was OK when using git clone
for each project manually. May revert back to that way.
I still like to avoid to require the user to do an additional git clone
or git submodule
to checkout the projects by themselves and would like to hide everything behind build.rs
.
@dylanede: If manual check out is required for a crate, you cannot easily use that crate as an dependency for another project?
from shaderc-rs.
Oh, wait, it seems cargo
will automatically checkout submodules for crates on crates.io having .gitsubmodules
?
from shaderc-rs.
I've #16 up. Hopefully it will solve the problem.
from shaderc-rs.
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 cargo publish
to upload (typically the entire contents of the crate directory excluding target
and git-ignored files, but not necessarily). So if you publish shaderc-rs
with the git submodules in a checked out, updated state, their contents will be in the published crate.
What is affected by git is when the crate is specified as a dependency using git =
in a Cargo.toml
. Off the top of my head I can't remember whether cargo does recursive cloning when using a git-specified dependency. I think it does.
from shaderc-rs.
@dylanede: Ah, that makes sense! Thanks for the explanation!
I checked the .cargo\registry\src\github.com-XXX\shaderc-XXX
directory, shaderc and its dependencies are there, and no .git
subdirectories in all of them. So that explains the error.
from shaderc-rs.
@HellButcher: v0.3.2 should have fixed the problem. Thanks! :)
from shaderc-rs.
Related Issues (20)
- Updating shaderc version HOT 3
- Linking error when building with target-feature=+crt-static HOT 2
- Unable to build on Ubuntu 20.04 LTS - build wants "python" by name, but which one? HOT 3
- Can't find `/usr/lib/libshaderc_shared.so` HOT 1
- Build fails on Windows with Windows store Python HOT 7
- Can Compiler be Send, even Sync? HOT 1
- cannot find native shaderc library on system but Vulkan-SDK is installed
- Cannot find native shaderc library on system HOT 5
- Requesting a patch release 0.8.2 HOT 1
- [Possible Regression] Link failure on `1.67-x86_64-pc-windows-msvc` HOT 1
- shader_stage pragma for task and mesh not available
- Can't build a lib for Windows with MT_StaticRelease
- Failing to build on mac m1
- dylib not found when running without "cargo run" on macOS Sonoma
- Provide a feature to prefer static linking
- Crates that use shaderc at build time fail to build on docs.rs HOT 5
- Run in CI/GitHub Actions HOT 1
- mingw-w64-x86_64-ninja compiler errors for MSVC rust cargo build
- Extensions? HOT 1
- error: linking with `link.exe` failed: exit code: 1120 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaderc-rs.