Replies: 1 comment
-
Using an invocation like this is effectively capturing the entirety of My advice is to try to one of the following and use what works best for you:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to build a project using crane from outside the project dir.
More specifically, our project depends on a rust project, which we need to compile both locally and in CI. We obviously can't guarantee that the rust project's source is available locally, so something like this:
is out of the question. (Also, the files are not situated in the root, as can be seen above.)
Instead, I have a derivation
agent
withagent.src
is produced by fetching the project from github withfetchFromGithub
, then applying our own patches to it viaapplyPatches
.Crane is indeed able to successfully build the project when specifying the above options as:
However, making changes to a patch triggers a full rebuild of all dependencies. I think the reason is that if a patch is added or changed, the store path to the source changes, including the path to the toml/lock files; crane assumes the files have changed, and initiates a complete rebuild of all deps.
(Please correct me if I'm wrong though!)
Is there a workaround for this situation?
Beta Was this translation helpful? Give feedback.
All reactions