rust-lang / jobserver-rs

Apache License 2.0
69 stars 39 forks source link

Started getting failures in build pipeline. #60

Closed dylanbstorey closed 10 months ago

dylanbstorey commented 10 months ago

I've recently started getting the following errors in my build commands from this library on my local dev environment.

Apple M1 Max Ventura 13.4.1

~Works fine in my gitlab actions though. Any suggestions ?~

Now started failing in my gitlab runners also

error[E0412]: cannot find type `RawFd` in `std::os::fd`
 --> /Users/dstorey/.cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.27/src/error.rs:2:27
  |
2 | type RawFd = std::os::fd::RawFd;
  |                           ^^^^^ not found in `std::os::fd`
  |
help: consider importing this type alias
  |
1 | use std::os::unix::prelude::RawFd;
  |
help: if you import `RawFd`, refer to it directly
  |
2 - type RawFd = std::os::fd::RawFd;
2 + type RawFd = RawFd;
  |

error[E0603]: module `fd` is private
 --> /Users/dstorey/.cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.27/src/error.rs:2:23
  |
2 | type RawFd = std::os::fd::RawFd;
  |                       ^^ private module
  |
note: the module `fd` is defined here
weihanglo commented 10 months ago

See https://github.com/rust-lang/jobserver-rs/pull/59. You might want to upgrade your Rust toolchain.

dylanbstorey commented 10 months ago

That worked, thank you.