-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make Procfile
validation more strict
#73
Comments
Seems a bit broader in scope than this buildpack, heck - it's great to see that this case is handled in a compatible way by this buildpack. :) To the actual issue, a The "spec" on DevCenter states that the following is the format:
To me, that makes the colon mandatory. I'm +1 on changing this behaviour across the platform. However, I don't think this carries any urgency at this point. |
This ticket is an example of where the lax parsing (that non-CNB Heroku also uses) causes poor UX: In that case the
And the failure mode seen by the user was at runtime:
|
The challenge is detection. I think we're best off moving away from regex and towards
For the rest of the cases being able to enumerate "Here's the problem" to point at a specific line and/or character would be great. |
Both this buildpack and Codon will happily accept a
Procfile
with contents:And will set the command to the empty string.
Should we make both this buildpack and Codon reject this?
See:
https://github.com/heroku/procfile-cnb/blob/683de9b9877957ca0a5e6ba6733059cb55b5c4d9/src/procfile.rs#L41-L61
The text was updated successfully, but these errors were encountered: