You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All build outputs, and while that's convenient in most cases, sometimes it would be really handy to rerun an already-cached build.
The are some challenges with this feature:
Deciding what to re-run. You wouldn't ever want to rebuild std from source if you can avoid it, so there needs to be some way to decide which things to rebuild and which things not to rebuild
We do track "metadata" for most/all recipes, so deciding what to rebuild will likely involve inspecting the recipe metadata, and ignoring the cache if it meets some condition
How to treat successes or failures. If a build succeeds but leads to a different output, do we prefer the old output or the new output? The old output is more logically consistent, but picking the new output is probably what most people would expect
A quick-and-dirty workaround that I've done a lot: just add a simple .env({ WATERMARK: "asdf" }) when you want to force-rerun a process. Using any random env value will lead to a new process recipe, which will force it to build. If the output of that process is the same, then anything dependent on it won't rebuild, unless you add more new env vars.
The text was updated successfully, but these errors were encountered:
All build outputs, and while that's convenient in most cases, sometimes it would be really handy to rerun an already-cached build.
The are some challenges with this feature:
std
from source if you can avoid it, so there needs to be some way to decide which things to rebuild and which things not to rebuildA quick-and-dirty workaround that I've done a lot: just add a simple
.env({ WATERMARK: "asdf" })
when you want to force-rerun a process. Using any random env value will lead to a new process recipe, which will force it to build. If the output of that process is the same, then anything dependent on it won't rebuild, unless you add more new env vars.The text was updated successfully, but these errors were encountered: