Skip to content
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

Does not work in Windows #70

Open
selfagency opened this issue Jul 24, 2023 · 0 comments · May be fixed by #74
Open

Does not work in Windows #70

selfagency opened this issue Jul 24, 2023 · 0 comments · May be fixed by #74

Comments

@selfagency
Copy link

selfagency commented Jul 24, 2023

Cargo installation fails citing could not find _unix_ in _os_

   Compiling ripsecrets v0.1.5 (C:\Users\dsieradski\.cargo\git\checkouts\ripsecrets-0fa9e8d7534dec57\ac370a9)
error[E0433]: failed to resolve: could not find `unix` in `os`
 --> src\pre_commit.rs:6:14
  |
6 | use std::os::unix::fs::PermissionsExt;
  |              ^^^^ could not find `unix` in `os`

error[E0599]: no method named `set_mode` found for struct `Permissions` in the current scope
  --> src\pre_commit.rs:79:11
   |
79 |     perms.set_mode(perms.mode() | 0o100);
   |           ^^^^^^^^ method not found in `Permissions`

error[E0599]: no method named `mode` found for struct `Permissions` in the current scope
  --> src\pre_commit.rs:79:26
   |
79 |     perms.set_mode(perms.mode() | 0o100);
   |                          ^^^^ method not found in `Permissions`

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `ripsecrets` (bin "ripsecrets") due to 3 previous errors
error: failed to compile `ripsecrets v0.1.5 (https://github.com/sirwart/ripsecrets?branch=main#ac370a97)`, intermediate artifacts can be found at `C:\Users\DSIERA~1\AppData\Local\Temp\cargo-installNnxbIE`
@colindean colindean linked a pull request Sep 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant