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

Fix asset source path handling in cache action #1013

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

schubc
Copy link
Contributor

@schubc schubc commented Aug 8, 2024

packages/nexrender-core/src/tasks/download.js will randomize the download destination.

packages/nexrender-action-cache/index.js is still looking for the filename provided as source and will crash if you try caching the template file.

This patch fixes the issue by using the assets dest property if provided.

Ensure the correct asset destination path is used if provided; otherwise, fallback to the default workpath location. This change addresses a potential issue where the wrong file could be copied.
@inlife inlife merged commit ad693d9 into inlife:master Aug 10, 2024
1 check passed
@inlife
Copy link
Owner

inlife commented Aug 10, 2024

Good catch @schubc, thanks!

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

Successfully merging this pull request may close these issues.

2 participants