-
Notifications
You must be signed in to change notification settings - Fork 4
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
File lock dependency on AsRawFd #10
Comments
Thanks for the issue. That's weird... Ok, I'll have a look at this tonight. |
I've just compiled it successfully on Mac OS and Linux. As this crate is for |
Oh I’m compiling this on Ubuntu. It should have compiled then.
Could you confirm the version of rust you’re using?
…On Mon, Oct 2, 2023 at 5:20 PM Alfie John ***@***.***> wrote:
I've just compiled it successfully on Mac OS and Linux. As this crate is
for POSIX advisory record locks, I have to ask - are you trying to build
this on Windows? If so, it's not going to work there because Windows isn't
a POSIX platform.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHH3WAWLU75M6KXBXESTUYTX5NK4RAVCNFSM6AAAAAA5NKIEFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTHE3DIMRRHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Even more weird because that should have definitely worked then. My Linux machine, How did you install Rust on that machine? If you used |
Okay I am using 1.64 and while looking at the std libs for 1.64 I don’t see
a std::os::fd.
…On Mon, Oct 2, 2023 at 5:45 PM Alfie John ***@***.***> wrote:
Even more weird because that should have definitely worked then.
My Linux machine, rustc and cargo are both at 1.70.0, and Mac OS has them
on 1.72.0.
How did you install Rust on that machine? If you used rustup, then we'll
have to dive deeper because that's what I'm running and have been since
file-lock was made 8 years ago.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHH3WARPT6CLHJT3MHUMXBDX5NNZRAVCNFSM6AAAAAA5NKIEFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTHE4DMOJRGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Same issue on my side.
|
@alfiedotwtf To help you reproduce the issue, I setuped a CI run on GitLab. As you can see, it fails on .10, and not on .9. I hope it helps. |
Hmm... I've been staring at this problem for a while now and I just can't work it out. As of 1.66.0
And here's the canonical example:
If someone can |
Oh... scratch that, I just inspected your CI file. Ok cool, I'll run with this. |
hmm.. no matter what I did locally, I couldn't break it. If @concatime could create a Dockerfile that I could run locally, I may be able to replicate it locally |
When one of my repositories requires file-lock as a dependency, the build always fails with the error below:
I went ahead and checked my rust version which was 1.64.0 and in my sources I had only std::os::unix::io::fd::AsRAwFd available. Is this usual? I patched the lib.rs with this and it works fine but is this the intention? Does the import need to be updated? Or do I have the wrong version of Rust std library?
The text was updated successfully, but these errors were encountered: