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

Importing types from imported components does not respect cache. #331

Closed
jsoverson opened this issue Jun 27, 2023 · 1 comment
Closed

Importing types from imported components does not respect cache. #331

jsoverson opened this issue Jun 27, 2023 · 1 comment
Labels
bug Something isn't working triage To be triaged

Comments

@jsoverson
Copy link
Contributor

Describe the bug
When running an app that imports components that import types, the cache does not get respected and you get errors like: Error fetching file registry.candle.dev/common/openapi-ui:3: Pulling asset registry.candle.dev/common/openapi-ui:3 failed: Refusing to overwrite /Users/jsoverson/.wick/cache/registry.candle.dev/types/http/0.3.0/component.yaml. Set 'overwrite' to true to force. Error: Error fetching file registry.candle.dev/common/openapi-ui:3: Pulling asset registry.candle.dev/common/openapi-ui:3 failed: Refusing to overwrite /Users/jsoverson/.wick/cache/registry.candle.dev/types/http/0.3.0/component.yaml. Set 'overwrite' to true to force.

To Reproduce
Use wick run on this file: https://github.com/candlecorp/wick/blob/cce0e9c77fef216e550a283a18b90af687b484d0/examples/http/rest-router.wick

Expected behavior
Duplicate imports should come from cache and not attempt to overwrite each other.

Actual behavior
Error gets thrown when the duplicated asset is pulled and written

Environment:

  • OS: Mac
  • Architecture: M1
  • Build Version: HEAD
@jsoverson jsoverson added bug Something isn't working triage To be triaged labels Jun 27, 2023
@jsoverson
Copy link
Contributor Author

Fixed as part of #329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage To be triaged
Projects
None yet
Development

No branches or pull requests

1 participant