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: support yaml in blob syncs #1522

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

beeme1mr
Copy link
Member

This PR

  • adds support for yaml in blog syncs

Related Issues

Fixes #1512

How to test

make test or make test-core

Signed-off-by: Michael Beemer <[email protected]>
@beeme1mr beeme1mr requested a review from a team as a code owner January 17, 2025 16:23
@beeme1mr beeme1mr linked an issue Jan 17, 2025 that may be closed by this pull request
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 17, 2025
Copy link

netlify bot commented Jan 17, 2025

Deploy Preview for polite-licorice-3db33c canceled.

Name Link
🔨 Latest commit 4bcafae
🔍 Latest deploy log https://app.netlify.com/sites/polite-licorice-3db33c/deploys/678ab13013ed5a0008b41e8d

Comment on lines +149 to +151
// TODO make consistent with the file sync
return buf.String(), nil
// return "", fmt.Errorf("filepath extension for URI: '%s' is not supported", hs.sync())
Copy link
Member Author

Choose a reason for hiding this comment

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

This retains the current behavior but is inconsistent with the file sync implementation. I'd prefer to return an error if the file extension is invalid or undefined but it would be a breaking change.

Do not merge until a decision has been made on the expected behavior.

Signed-off-by: Michael Beemer <[email protected]>
@beeme1mr beeme1mr changed the title fix: support yaml in blog syncs fix: support yaml in blob syncs Jan 17, 2025
Signed-off-by: Michael Beemer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] inconsistent yaml support from file:// vs s3://
1 participant