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

feat: cleanup any existing blobs from previous builds as a pre-build command #5413

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

kitop
Copy link
Contributor

@kitop kitop commented Nov 27, 2023

Summary

Cleanup any existing blobs from previous builds as a pre-build command.

Follow up to #5404.


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)

Copy link
Contributor

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

Base automatically changed from kitop/blob-step to main November 28, 2023 14:17
@kitop kitop force-pushed the kitop/blob-cleanup branch from 924212d to 29b979f Compare November 28, 2023 15:30
@kitop kitop force-pushed the kitop/blob-cleanup branch from 29b979f to c6fb307 Compare November 28, 2023 16:29
@kitop kitop marked this pull request as ready for review November 28, 2023 16:31
@kitop kitop requested review from a team as code owners November 28, 2023 16:31
@kitop kitop changed the title feat: cleanup blobs before build fix: cleanup blobs before build Nov 28, 2023
@kitop kitop changed the title fix: cleanup blobs before build feat: cleanup blobs before build Nov 28, 2023
Comment on lines +5 to +8
await Promise.all([
writeFile('dist/.netlify/blobs/deploy/with-metadata.txt', 'another value'),
writeFile('dist/.netlify/blobs/deploy/$with-metadata.txt.json', 'this is not json'),
])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed it to write files this way instead of using cp since cp is not available in Node 14 and was failing CI tests

@kitop kitop changed the title feat: cleanup blobs before build feat: cleanup any existing blobs from previous builds as a pre-build command Nov 28, 2023
@kitop kitop enabled auto-merge (squash) November 28, 2023 16:48
@kitop kitop merged commit 54e62eb into main Nov 28, 2023
35 checks passed
@kitop kitop deleted the kitop/blob-cleanup branch November 28, 2023 16:49
This was referenced Jun 26, 2024
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.

2 participants