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

Fix srv definition parsing failing due to carriage return #303

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Jun 11, 2024

Changelog

Fix srv definition parsing failing due to carriage return

Docs

None

Description

Fixes srv (or action) definition parsing failing when the definition seperator --- is terminated with \r\n instead of just \n. More details in #301.

Fixes: #301

Copy link

linear bot commented Jun 11, 2024

@achim-k achim-k requested a review from jtbandes June 11, 2024 14:57
@achim-k
Copy link
Collaborator Author

achim-k commented Jun 11, 2024

cc @tonynajjar

@achim-k
Copy link
Collaborator Author

achim-k commented Jun 11, 2024

Rolling CI tests are still failing -> #304

Copy link
Member

@jtbandes jtbandes left a comment

Choose a reason for hiding this comment

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

Do we support \r\n in other places or only after the --- separator?

@achim-k
Copy link
Collaborator Author

achim-k commented Jun 11, 2024

This was the only place where we did a string comparison, for other places we do not have to handle different line endings.

@jtbandes jtbandes merged commit 4fcf613 into main Jun 11, 2024
8 of 10 checks passed
@jtbandes jtbandes deleted the achim/fg-7859-invalid-service-definition branch June 11, 2024 20:48
@achim-k achim-k mentioned this pull request Jun 11, 2024
jtbandes pushed a commit that referenced this pull request Jun 13, 2024
### Changelog
- Fix srv definition parsing failing due to carriage return (#303)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Invalid service definition
2 participants