Skip to content

Conversation

@ulyssessouza
Copy link
Contributor

@ulyssessouza ulyssessouza commented Aug 17, 2021

This is due to the Marshal and Unmarshal methods
also remove double quotes from strings.
This breaks empty strings turning it into nil values.

PTAL @lorenrh

Signed-off-by: Ulysses Souza ulyssessouza@gmail.com

@ulyssessouza ulyssessouza requested a review from ndeloof as a code owner August 17, 2021 05:19
Copy link

@lorenrh lorenrh left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

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

LGTM

@rumpl rumpl self-requested a review August 19, 2021 09:00
@ndeloof
Copy link
Collaborator

ndeloof commented Aug 23, 2021

LGTM but then we need another way to remove comments :'(

@ndeloof
Copy link
Collaborator

ndeloof commented Aug 24, 2021

I guess unmarshall+marshall way to drop comments also caused docker-archive/compose-cli#2036

@ndeloof
Copy link
Collaborator

ndeloof commented Aug 24, 2021

I suggest removeYamlComments is kept but implementation just drop lines starting by #. This won't remove all comments, but at least the most obvious ones where users might have documented usages with some command line examples

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
@ulyssessouza ulyssessouza changed the title Revert the removal of comments Remove only full line comments to avoid variable interpolation on this ones Aug 24, 2021
@ulyssessouza ulyssessouza merged commit eca529e into master Aug 24, 2021
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.

6 participants