Skip to content

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

Open
@mads-hartmann

Description

@mads-hartmann

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions