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

Parse app config strictly #3629

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

saquibmian
Copy link
Contributor

In #3376 we switched UnmarshalYAMLStrict to UnmarshalYAMLNonStrict. I'm not entirely sure if this was intentional, but we want this to be strict by default. Happy to discuss if the CLI needs non-strict anywhere and if so if we can make this configurable.

In #3376 we switched `UnmarshalYAMLStrict` to `UnmarshalYAMLNonStrict`.
I'm not entirely sure if this was intentional, but we want this to be
strict by default. Happy to discuss if the CLI needs non-strict anywhere
and if so if we can make this configurable.
Copy link
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 11, 2025, 4:56 PM

@bufdev
Copy link
Member

bufdev commented Feb 11, 2025

If we did it in that PR it was definitely intentional, that PR was unfortunately massive but I would not just revert this without understanding a bit more why or why not

@saquibmian
Copy link
Contributor Author

If we did it in that PR it was definitely intentional

Yup that's why I opened the PR to discuss if this was intentional. I have poked around a little and can't see yet why we would do this, wondering if you can recall why we did this?

@mfridman
Copy link
Member

mfridman commented Feb 11, 2025

I also cannot recall why. Maybe we could add a ReadConfigStrict or a functional option to control the default behavior?

In other internal projects, we'd like to use strict unmarshal. It's a property we'd like to maintain to avoid config issues.

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.

3 participants