fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.2k stars 41 forks source link

Inconsistent Caching Behaviour with Path Dependencies #122

Open wmmc88 opened 9 months ago

wmmc88 commented 9 months ago

When executing a rust-script with a path dependency, I find that sometimes editing code in the path dependency does not trigger a rebuild of the dependency. The behavior I am experiencing does not seem to be always consistent. Sometimes, I'll notice that the behaviour of the script does not match a change I made in the dependency, I'll add some random letters to the path dependency to see if I can force a rebuild (it does), but then when i remove the random letters it goes back to using some stale copy of the path dependency.