Comments (4)
Ah, I see - the issue is that Naersk copies all dependencies into a flat structure, i.e. it takes:
deps/something
deps/typst
deps/typst/typst-foo
deps/typst/typst-bar
... and flattens it into:
deps/something
deps/typst-foo
deps/typst-bar
... which causes things like version.workspace
to fail, unable to locate the workspace's Cargo.toml
.
It seems that Crane handles this correctly, so for the time being I'd suggest checking it out; I don't have much time to prepare a fix now, but if someone wants to, feel free!
from naersk.
I am facing this same issue while trying to build typst-preview. Interestingly, one of the dependencies, typst, is a flake, but the package I am building is not a flake. Here are the relevant logs,
error: failed to load source for dependency `typst`
Caused by:
Unable to update https://github.com/Myriad-Dreamin/typst.git?rev=c7e91e216310d5c8dca3eee8a23a64b3ede99e15#c7e91e21
Caused by:
failed to update replaced source https://github.com/Myriad-Dreamin/typst.git?rev=c7e91e216310d5c8dca3eee8a23a64b3ede99e15#c7e91e21
Caused by:
failed to parse manifest at `/nix/store/1m7xmazviaayrbhvbpgc00jh2lfqz8y5-git-dependencies/typst-0.8.0-c7e91e216310d5c8dca3eee8a23a64b3ede99e15/Cargo.toml`
Caused by:
error inheriting `version` from workspace root manifest's `workspace.package.version`
Caused by:
failed to find a workspace root
from naersk.
I also hit the version.workspace bug - hopefully a nix wizard can submit a fix for the rest of us 😅
from naersk.
tauri-plugin-single-instance
also seems to trigger this
from naersk.
Related Issues (20)
- How to cargo publish? HOT 2
- two step builds fail if CMake is used in a `build.rs` HOT 5
- Building crate that has a git submodule that is a crate that one depends on as a path dependency seems to fail? HOT 4
- no matching package named `sea-orm` HOT 4
- Cargo/rustc linker serach path when in developer shell HOT 7
- how do i build examples like cargo build --example example_name HOT 3
- Passing options to clippy HOT 2
- Monorepo with multiple crates that can not share a workspace is not possible to build? HOT 6
- Project's build.rs file not getting executed at all HOT 2
- Issues with `autocxx` in sandbox. HOT 14
- dummy-src build failed with "cp: missing file operand" HOT 4
- missing field `unused` for key `patch` HOT 1
- `unpack-*` derivations end up in closure HOT 1
- The 'proper' way of doing a debug build? HOT 4
- Looking for a maintainer HOT 2
- Dependencies with inherited workspace info fails with parse error HOT 4
- How to build tauri with naersk? HOT 1
- Looking for a maintainer
- getting file/folder permission issue when building
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 naersk.