Git Product home page Git Product logo

Comments (4)

Patryk27 avatar Patryk27 commented on June 3, 2024 1

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.

mlaradji avatar mlaradji commented on June 3, 2024

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.

TheButlah avatar TheButlah commented on June 3, 2024

I also hit the version.workspace bug - hopefully a nix wizard can submit a fix for the rest of us 😅

from naersk.

getchoo avatar getchoo commented on June 3, 2024

tauri-plugin-single-instance also seems to trigger this

from naersk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.