mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rivy on GitHub (Jan 20, 2020).
Original GitHub issue: https://github.com/bootandy/dust/issues/56
v0.4.3 builds and installs, but the changes in
bdc3d40break windows compilation (even when using 'nightly').I just noticed when updating to the most recent version (v0.4.4).
I've looked through the code and it looks like using the unstable
metadata.file_index()andmetadata.volume_serial_number()as well as missingget_filesystem()are the culprits.Here's the build output:
@bootandy commented on GitHub (Jan 21, 2020):
Thanks.
I was trying to be helpful for a future windows version but I hadn't tested it.
I'll remove the windows specific stuff or add a windows compile step on CI
@rivy commented on GitHub (Jan 21, 2020):
Thanks for the quick response.
I was attempting to create a PR to fix it, at least for nightly, but I'm lost in the pragma weeds. I can't create a working build despite the "helpful"
cargo/rustcerror messages about using#![feature(windows_by_handle)].And I haven't seen or created a Travis-CI windows build recipe. I have, however, created both AppVeyor (see uutils/coreutils) and a GitHub-Actions CIs (linux, macos, and windows; see Peltoche/lsd), if you're interested in seeing some working code.
I'd be happy to donate some time and submit a PR along those lines if helpful.
And just FYI... I think that the GitHub-Actions CI would be better; it's inclusive of all the major OSs and is much faster than Travis and/or AppVeyor. Notably, the "x86_64-pc-windows-gnu" target is problematic right now (though hopefully a fix is in the works [see GH:rust-lang/rust#67429]), but "x86_64-pc-windows-msvc" works fine.
@lespea commented on GitHub (Jan 21, 2020):
@rivy do you want to double check my pr to make sure it works for you (worked on my machine)
@rivy commented on GitHub (Jan 22, 2020):
@lespea , sure ... done.
Build works but
cargo testfails to compile.I posted details on the PR thread.
@bootandy commented on GitHub (Jan 22, 2020):
So to sum up, I've merged lespea's changes which should fix compiling on windows
The tests won't run on windows until someone adds this missing OS dependent functions in
tests.rs- I can't do this as I don't have a windows box. If someone adds them I'll merge it.If we are going to support windows from now then I'd like to see windows included as a CI build. I have no strong feelings about which CI to use (apart from the fact I don't like fiddling with CI much). If someone is happy modifying the .travis CI or converting it to another CI system to include the big 3: windows/mac/linux. Then that would be most welcome.
@rivy commented on GitHub (Jan 22, 2020):
Alright, I've got a semi-working branch with GHA-CI.
I'll proceed to stamp out some of the windows testing bugs and post a PR.
@rivy commented on GitHub (Jan 22, 2020):
@bootandy , initial PR submitted.
It'll need some review and a bit more thought/investigation before merge.
@rivy commented on GitHub (Jan 22, 2020):
@lespea , if you get a chance to test 834efe7 , I'd appreciate it. It includes some windows tests which pas on my local machine, but vary by one byte in size on the CI host. I'm curious what results you get.
@lespea commented on GitHub (Jan 22, 2020):
I can test tonight but I won't be home for a while (probably at least another 8 hours) :/. I'l post results when I get them!
@lespea commented on GitHub (Jan 23, 2020):
Testing #62 passes but I get the off-by-one error for 834efe7
@bootandy commented on GitHub (Feb 3, 2020):
The above PR now builds windows versions. Thanks @rivy