-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add package lint tool #12
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sounds like this needs a configuration language, not an effectfull programming language. I'm not sure what the constraints of toltec are but if you want to stay with shell, maybe shellcheck should at least be part of the linting. Maybe it can even be tuned to verify new things you need? My 2 cents. |
We do actually have shellcheck running in the linting right now, but it can't lint the non-shell specific stuff we have in the package definition itself. That requires context of the system that shellcheck doesn't have. |
The good side of this choice is that we can use the metadata fields inside the recipe functions, e.g. to parameterize sources with the version number. This is the model that Arch Linux uses. But of course we can transition to something else if it is warranted.
|
Check that:
|
|
it would be nice to lint packages for correctness.
things like:
The text was updated successfully, but these errors were encountered: