Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages build because they're deps of a script don't get uploaded to the remote cache #137

Open
mads-hartmann opened this issue Nov 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mads-hartmann
Copy link
Contributor

mads-hartmann commented Nov 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant