-
-
Notifications
You must be signed in to change notification settings - Fork 346
Fix build on NetBSD. #2005
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
Fix build on NetBSD. #2005
Conversation
@0-wiz-0 thanks for this 👍 |
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.
Thanks! Per #2004 (comment), I accidentally introduced this bug in #1949 by merging that update PR without adapting gix-index
to the changes in rustix
.
I have verified that the changes in this PR restore the ability to build on NetBSD, and that I am able to run commands like gix clone
with the resulting binary.
A small change, to the commit message only
Although commits that adapt to changes in updated dependencies are most often not conventional (as only some commits need be), in this case the commit is fixing a bug that has appeared in a published version of the gix-index
crate.
So I think the commit message, which is currently "Fix build on NetBSD.", will have to start with fix:
in order to facilitate proper versioning and changelog entry generation. (It could be anything like "fix: Build on NetBSD." or "fix: Fix build on NetBSD" or some other variation if preferred.)
Since you've checked the box to allow maintainers to push to your branch, I can make such a change and force-push it. I'd be happy to do that, but I figured I'd check first, since you might prefer to do it.
Thanks a lot for contributing the fix, and thanks @EliahKagan for reviewing and validating it! On another note, now that I read the feedback about the commit message, I just want to share that I have been operating on the implicit rules that
then I can rewrite the commits by rebasing and/or make changes to assure changelog and version generation will be desirable. Maybe this is something we should make explicit in the contribution guidelines so that in future you can assume consent in that regard. |
rustix::fs 1.x has unified the nanonseconds member across operating systems.
@EliahKagan: I've changed the commit message as suggested - feel free to edit it if you want to adapt it even more! |
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.
Thanks--looks good!
Thank you for merging this so quickly! |
Since there have been no SemVer-breaking changes to @Byron Is this workable? |
Thanks for the ping - it's indeed no problem to publish the fix, so it should arrive automatically downstream. |
As shown in this gist, I've verified that installation works on the main branch, and when installing from crates.io, since the crate releases associated with the fix here. (That was yesterday, before |
rustix::fs 1.x has unified the nanonseconds member across operating systems.
Fixes #2004