-
Notifications
You must be signed in to change notification settings - Fork 306
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
Alias dog
script names as dogshell
#305
Conversation
@dwminer Thanks for this PR and sorry for the long delay in addressing it. This change would not be backward compatible as it would require users to update their scripts/applications/wherever |
Closing this for now but let us know if you have additional feedback to provide. |
@dabcoder Unfortunately, sheepdog is still actively used by libvirt, so it won't be changing anytime soon. Aliases don't help, because the problem is that datadog is trying to use the |
This looks a bit too drastic. This is mostly a packaging issue and it can be easily be solved by distributions by diverting (e.g. see I'd suggest adding |
@jd Sure, what we're already doing in the Fedora packaging is renaming |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add PendingDeprecationWarning to datadog.dogshell:main
and datadog.dogshell.wrap:main
when sys.argv[0]
ends with dog
or dogwrap
.
Currently, the 'dog' entrypoint conflicts with a binary of the same name from sheepdog, a package available in major linux distributions. In packaging, we've renamed the dog entrypoint from this package to dogshell to match the source module's name and to avoid conflicts. I think it makes sense to also add it as an entrypoint here for consistency. I've marked it as Pending Deprecation, so that in the future we can transition users to dogshell and retire the dog name.
Done, @jirikuncar. Thanks for the feedback. No strong opinion here - would FutureWarning make more sense as a warning to raise? |
@dwminer the important difference is that |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
dog
script names as dogshell
Unrelated test failures, fixed on master, merging |
/usr/bin/dog conflicts with the existing sheepdog package in common
Linux distributions. dogshell seems like a sensible choice since
it's already called that in the source module.