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
The documentation does not mention anything about my problem
There are no open or closed issues that are related to my problem
Description
Specifying a label mylabel=foo#bar results in the label mylabel=foo. It appears that the octothorpe (#) is incorrectly interpreted as the start of a comment and the rest of the label is removed.
Expected behaviour
The Docker labels output of the action should include mylabel=foo#bar
Actual behaviour
The Docker labels output of the action includes mylabel=foo
So as I understand it, the underlying issue was that YAML does not allow comments in multi-line scalar inputs:
-
labels: | # This is not a valid YAML comment; it is part of the labels input mylabel=foo#bar
So in order to allow for comments in the labels input, metadata-action calls getInputList, which uses csv-parse to remove the comments. But this also removes parts of the labels containing #.
I don't think it's possible to escape #, but I can force quotes around the label. csv-parse will remove the quotes and accept the whole label instead of interpreting the comment. So for example, this works:
Contributing guidelines
I've found a bug, and:
Description
Specifying a label
mylabel=foo#bar
results in the labelmylabel=foo
. It appears that the octothorpe (#) is incorrectly interpreted as the start of a comment and the rest of the label is removed.Expected behaviour
The Docker labels output of the action should include
mylabel=foo#bar
Actual behaviour
The Docker labels output of the action includes
mylabel=foo
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
No response
BuildKit logs
No response
Additional info
The behaviour was correct in v3.6.2 and seems to have broken around v3.7.0.
The text was updated successfully, but these errors were encountered: