-
Notifications
You must be signed in to change notification settings - Fork 124
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
Consider including xtask/
in the published crates
#654
Comments
Apologies for the trouble, it sounds like a pretty reasonable request. I’ll let @AlexTMjugador pick it up though as I’m not sure if there was a reason for excluding that. |
I chose to explicitly exclude the However, my rationale above did not consider that Linux distributions might actually find these artifacts useful for their packaging needs. Therefore, I too think this is a reasonable request we can apply; there was no reason to exclude these files other than that being "technically neater" in the sense stated above. |
I've explored several Cargo manifest It'd be technically possible to rename the |
Hmm, that’s unfortunate. I didn’t realize that was the case when I opened this issue.
I think that sounds rather awkward and confusing. I would rather not encourage you to commit a “weird” workaround. I can live with needing an auxiliary source archive from GitHub to build the man page, especially since #655 has been dealt with. |
I was just talking about this with @decathorpe, who pointed out that another possible approach would have been to keep building the man page in |
Adding a "private" feature for manpage generation could work, but Cargo features can't truly be private: they can appear in the documentation and can be enabled by any crate that depends on It would also have the added benefit you stated of including the |
I’m closing this based on the above discussion. Thanks for investigating! |
In Fedora Linux, we have the following rule:
This has been working well for packaging both the library and the command-line tool, but since #645 (which I agree was a good idea overall), the published crates no longer contain everything necessary to generate the man pages because
xtask/*
was explicitly excluded.I can work around this by adding the GitHub source archive as an additional source, which is a bit tedious but workable. However, this is made more difficult by the fact that some of the test files, like
issue-141.png
, have dubious license/copyright status. By looking at their contents, it is reasonable to suspect they are not covered by oxipng’s MIT license, and indeed to suspect that they may not be redistributable at all. Therefore, I would need to use a script to produce a filtered version of the GitHub source archive for Fedora to use and distribute in source RPMs. This, too, is precedented and possible, but it’s becoming a lot of work to do for a man page!Would you consider just removing the line
oxipng/Cargo.toml
Line 17 in f8c84c2
from
package.exclude
inCargo.toml
? This would add only three tiny files to the published crates, in exchange for avoiding all of the above packaging issues.The text was updated successfully, but these errors were encountered: