Skip to content

Conversation

Un1oR
Copy link
Contributor

@Un1oR Un1oR commented Apr 23, 2025

In our project, musttag was triggered for the structure implementing encoding.TextMarshaler/encoding.TextUnmarshaler interfaces when working with YAML, which looks like an error.

@Un1oR Un1oR changed the title Do not complain about the absence of MarshalYaml/UnmarshalYaml if MarshalText/UnmarshalText is present. Do not complain about the absence of MarshalYaml/UnmarshalYaml if MarshalText/UnmarshalText is present Apr 23, 2025
@Un1oR Un1oR force-pushed the feature/text-(un)marshaler-consideration-for-yaml branch 2 times, most recently from c0012b1 to 37cd81a Compare April 23, 2025 18:13
@tmzane tmzane self-requested a review April 24, 2025 08:07
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.87%. Comparing base (46b7fb5) to head (c5d339c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #119   +/-   ##
=======================================
  Coverage   73.87%   73.87%           
=======================================
  Files           3        3           
  Lines         222      222           
=======================================
  Hits          164      164           
  Misses         47       47           
  Partials       11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tmzane
Copy link
Member

tmzane commented Apr 24, 2025

Oh, I forgot about these for the yaml package, thanks. I'll fix the linter check and then we can merge it.

@tmzane tmzane changed the title Do not complain about the absence of MarshalYaml/UnmarshalYaml if MarshalText/UnmarshalText is present fix(yaml): add encoding.Text(Un)marshaler to the interface whitelist Apr 24, 2025
@tmzane tmzane force-pushed the feature/text-(un)marshaler-consideration-for-yaml branch from 37cd81a to c5d339c Compare April 24, 2025 16:19
@tmzane tmzane merged commit 7d096c2 into go-simpler:main Apr 24, 2025
7 checks passed
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