Repository navigation
Add --offline option - #65
Conversation
I typically run my build with ``` cargo build --offline -p <specific package name> ``` I commented out the portion of my Dockerfile that ran `cook` and instead ran the above command. This indeed works. So, I've added this option to the necessary structs and the place where `cargo` is executed.
|
@LukeMathWalker I tried to add you as a reviewer, but it doesn't seem like it's available? Please let me know if there's anything I need to do to contribute! |
|
Another option besides adding more options to cargo chef is to just pass through all arguments besides the recipe path to cargo when we run the build step. Edit: added a first draft of this in #67. The main concern I have is that there is now an ordering dependency between options---options for |
|
Thanks for the PR @prestontw! As mentioned in the discussion you linked, I don't want to allow the user to pass raw flags/options to |
to support building with vendored and patched dependencies.
I typically run my build with
I tried translating my existing Dockerfile to use cargo chef,
but I was running into compilation errors where it wasn't
picking up the patched dependencies.
I commented out the portion of my Dockerfile
that ran
cookand instead ran the above command.This indeed works. So, I've added this option to the
necessary structs and where the
cargocommand is built.