leeway
leeway copied to clipboard
Packages build because they're deps of a script don't get uploaded to the remote cache
Bug description
deps packages that are being built as part of leeway run don't get uploaded to the remote cachce
Steps to reproduce
Modify previewctl so that you get a new hash
printf "\n// $(date)\n" >> /workspace/gitpod/dev/preview/previewctl/main.go
Run dev/preview/previewctl:install, remove the caches, and run dev/preview/previewctl:install again.
leeway run dev/preview/previewctl:install
rm -rf /tmp/build /tmp/cache
leeway run dev/preview/previewctl:install
Expected behavior
I would have expected the 2nd invocation to download the dev/preview/previewctl:cli package from the remote cache.
It does re-use the cache if it exists. E.g. if you use leeway build, then delete the local caches, and then leeway run it does indeed use the remote cache.
rm -rf /tmp/build /tmp/cache
leeway build dev/preview/previewctl:cli
rm -rf /tmp/build /tmp/cache
leeway run dev/preview/previewctl:install
Example repository
No response
Anything else?
No response