Skip to content

fix: fixes an issue where the cache could not save .dot directories #4843

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

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

lukasholzer
Copy link
Contributor

@lukasholzer lukasholzer commented Feb 1, 2023

🎉 Thanks for submitting a pull request! 🎉

Summary

Fixes https://github.com/netlify/pillar-workflow/issues/1017
Fixes #4254


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

image

@lukasholzer lukasholzer requested review from danez and jobala February 1, 2023 09:59
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

await new Fixture('./fixtures/cache_utils').runWithBuild()
// should have cached files in the output message
const output = await new Fixture('./fixtures/cache_utils').runWithBuild()
t.snapshot(normalizeOutput(output))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the comment, but wouldn't it be better to do some explicit matching here so we do not even need the comment?

Something like

t.true(output.includes("content inside dist/.dot\nhello.txt"))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point I hate those snapshots anyway 😂

@kodiakhq kodiakhq bot merged commit ccb3a00 into main Feb 1, 2023
@kodiakhq kodiakhq bot deleted the fix/workflow-1017 branch February 1, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache-Utils: files inside subfolder are not cached
3 participants