You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fixed partially this issue. It is string handling issue when dump diff.
ref. 80c22c7
So far, this yaml-diff only handles key-value pair and structure. It means showing "There is a diff in the key" even if there is multiline strings.
This is because go-yaml that is yaml parser used in yaml-diff only has the information that it is a string. Maybe a custom type could be used to get a more detailed diff as you mentioned, with the information that it is a multi-line string. Or, maybe re-calculate detailed diff if the diff is in string values in dump phase.
I want diff long string values, but give wrong result
test case
c.yaml
d.yaml
the
d.yaml
deletelogging.b: false
and addlogging.c: false
but result:
The correct result is
![图片](https://private-user-images.githubusercontent.com/13202101/306147456-860ceb5d-b9a9-4d3e-bd90-6e05d34dcfc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTQ0MjMsIm5iZiI6MTczOTM5NDEyMywicGF0aCI6Ii8xMzIwMjEwMS8zMDYxNDc0NTYtODYwY2ViNWQtYjlhOS00ZDNlLWJkOTAtNmUwNWQzNGRjZmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIxMDIwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExYWY0MDk5OTU0ODg2MGViMjc2MmEzM2U4ZjJiMDY2MGYxMWI4N2NkOWI0MDUxYWNiOWM2N2YwNjBkMTQ5ZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TTRtbPFQYmhomjxYrPTa2MlvaSYBxGvD_B4mewUSy-8)
ref:
The text was updated successfully, but these errors were encountered: