-
Notifications
You must be signed in to change notification settings - Fork 473
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
Allow users to overwrite default driver/type #539
Comments
Either seems fine. The attribute model feels slightly cleaner in go structs. What happens if you want coreutils in both a deb and an rpm installed? |
@aelsabbahy the 2nd option is cleaner for everyone, honestly I am not even a fan that the port checks use it. I would also take it a step forwarder and allow the user to pass custom paths for the type binaries.
@directionless that is a weird setup but having 2 tests should just suffice. |
The attribute model does seem cleaner, but doesn't handle collisions or duplicates. Another option is the ability to overwrite the key attribute, there's already work that's been done on this and new work is scheduled:
I'm not a fan of forcing two tests.. Feels very limiting. Another example of a resource that might benefit from this is the http one. GET vs PUT same URL. Hopefully, we can come up with a consistent/flexible consensus on this and normalize everything in goss for it. |
Oh yeah, I had forgotten about that! This a great feature even if newbies can get confused the first time they see it.
That is fair, introducing 2 tests should be avoided but that particular use case seems on the outside of the 80% of the use cases Goss aims for. That said we could introduce a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still being discussed, not stale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Going to just mark the 2nd approach as the approved one for now. I'll work my way towards it a resource at a time, and will accept PRs that move the code in that direction. If anyone thinks it's a bad idea.. feel free to chime in here. |
Describe the feature:
Currently goss decides which package manager and service manager to use based on your OS. This feature is to allow users to overwrite this.
Describe the solution you'd like
Open to suggestions on this, two possibilities I'm debating:
PKG_TYPE:PACKAGE_NAME
syntax, this is consistent with the port checks.Example:
Example:
The text was updated successfully, but these errors were encountered: