Giter Club home page Giter Club logo

Comments (3)

pythoneer avatar pythoneer commented on May 20, 2024

Sry, i now realized that cargo chef cook is also deleting the content of project files like shared/src/lib.rs and server/src/main.rs .. therefore my test project is currently broken ... i'll fix it later because i am unfortunately on my way now.

EDIT:

I restored the example and can confirm that the changes are happening i assumed above. After running cargo chef cook --recipe-path recipe.json not only the Cargo.toml files are altered (incorrectly) source files are also altered, either completely emptied out or weirdly replaced with different code.

after running the command client/src/lib.rs is just empty as is shared/src/lib.rs. In server/src/main.rs all source code is replaced simply with

fn main() {}

As additional information – and why i relate this to issue #4 – i am importing shared into the client and server with shared = { path = "../shared" }

from cargo-chef.

LukeMathWalker avatar LukeMathWalker commented on May 20, 2024

This is by design, as discussed in #4 - cargo-chef is designed for usage in containers to leverage Docker layer caching, where changes to the source are considered ephemeral given that the container itself is ephemeral.

Some of the improvements discussed in #4 should hopefully avoid this surprise in the future.

from cargo-chef.

pythoneer avatar pythoneer commented on May 20, 2024

Thanks for you answer i think that concludes my journey here :) ... i'll close this issue as it is redundant and almost a duplicate from issue #4 / #27

from cargo-chef.

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.