-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Restore license files that were lost in 0.1.22 #202
Conversation
389f14f
to
0de2cc8
Compare
Thanks for catching this! I've updated the PR to add
I made this change as a result of a request to remove test data in another crate: BurntSushi/bstr#200 I did so there and nobody complained. So I figured I'd do it here too. I started by just excluding the new
|
0de2cc8
to
d40884c
Compare
To be fair, I caught this in bstr too, I just didn't have time to file an issue / comment on the PR yet. In general, for distribution packages (Fedora and debian, to my knowledge), we use crate sources as distributed on crates.io, and run tests (if possible). I understand that it's a trade-off between making downloads larger for everyone or making it possible to run tests from published artifacts - and that in most cases the balance tips towards making the downloads smaller. |
@decathorpe I would like to hear more about your use case. For example, how often do y'all catch regressions as a result of running tests using the crate artifact? |
Good catch – thanks!
I would say that what Fedora does – packaging from released crates by policy, while also trying to run tests where practical – is uncommon.
We understand that it’s relatively common to omit separate test files and/or test data, and so we run tests on a best-effort basis. Where it’s too hard to make it happen, we’re just checking that the crate builds. We understand that not always being able to run tests is a natural result of the interaction between our policies and common practices in the Rust community. In some cases, we can make the tests work by adding an additional source archive, like the archive from GitHub. This is allowed by our policies as long as the GitHub archive is provably used only for testing, and doesn’t contribute to the crate library sources we ship in the resulting
Well – both. The weight of prevailing practice in the Rust community does tend to be on the side of omitting test sources and data in most cases.
I am not answering for @decathorpe here, but in my experience, we catch regressions reasonably frequently: not as often on |
Aye, thanks for the added context! For Jiff at least, CI I believe has all of those targets running via But all righty, I'll stick to the current trajectory for now. My guess is that I'll probably end up doing this for my other crates, slowly, over time. |
This approach was successful. I’m preparing to ship |
When 6926d6d explicitly listed files to include in published crates, the license files were lost from the crates. This PR restores them by adding them to the
include
lists.