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

Bug: No caching of import if dest is provided #516

Open
smoser opened this issue Sep 29, 2023 · 0 comments
Open

Bug: No caching of import if dest is provided #516

smoser opened this issue Sep 29, 2023 · 0 comments
Labels

Comments

@smoser
Copy link
Contributor

smoser commented Sep 29, 2023

stacker version

v1.0.0-rc5-396ff9d

Describe the bug

Stacker does not cache any import items if a 'dest' is provided.

See example 'testme.sh' script here.

When executed, it will build a simple stacker.yaml file with

  import:
    - path: https://github.com/cirros-dev/cirros/releases/download/0.6.2/cirros-0.6.2-source.tar.gz
      hash: 1bdd062118722501ed37234729d9164533da6bc3685f162c33924e64e36883b5
      dest: /imports/my.tar.gz

After doing so, it will look in the log for 'downloading'. The idea is that the downloading of the url should only happen once.
That is true if you do not provide a 'dest' argument. But if dest is provided then the url will be downloaded every time.

To reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant