Project

General

Profile

Actions

Bug #26513

open

Agent template module does not compile on Windows.

Added by Martin HART 20 days ago. Updated 20 days ago.

Status:
Pending release
Priority:
N/A
Assignee:
-
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

cargo build:

error[E0433]: failed to resolve: could not find `unix` in `os`
   --> policies\rudder-module-type\src\lib.rs:255:18
    |
255 |     use std::os::unix::fs::MetadataExt;
    |                  ^^^^ could not find `unix` in `os`
    |
note: found an item that was configured out
   --> /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\std\src\os\mod.rs:36:9
note: the item is gated here
   --> /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\std\src\os\mod.rs:28:1
note: found an item that was configured out
   --> /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\std\src\os\mod.rs:85:9
note: the item is gated here
   --> /rustc/4d91de4e48198da2e33413efdcd9cd2cc0c46688\library\std\src\os\mod.rs:84:1

warning: unused import: `cfengine::CfengineRunner`
  --> policies\rudder-module-type\src\lib.rs:13:13
   |
13 | use crate::{cfengine::CfengineRunner, parameters::Parameters};
   |             ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unreachable call
   --> policies\rudder-module-type\src\lib.rs:209:5
    |
209 |     unimplemented!("Only Unix-like systems are supported")?;
    |     ------------------------------------------------------^
    |     |
    |     unreachable call
    |     any code following this expression is unreachable
    |
    = note: `#[warn(unreachable_code)]` on by default

error[E0277]: the `?` operator can only be applied to values that implement `Try`
   --> policies\rudder-module-type\src\lib.rs:209:5
    |
209 |     unimplemented!("Only Unix-like systems are supported")?;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `!`
    |
    = help: the trait `Try` is not implemented for `!`

error[E0599]: no method named `uid` found for struct `Metadata` in the current scope
   --> policies\rudder-module-type\src\lib.rs:258:20
    |
258 |         .map(|m| m.uid())
    |                    ^^^ method not found in `Metadata`

Some errors have detailed explanations: E0277, E0433, E0599.
For more information about an error, try `rustc --explain E0277`.
warning: `rudder_module_type` (lib) generated 2 warnings
error: could not compile `rudder_module_type` (lib) due to 3 previous errors; 2 warnings emitted

Actions #1

Updated by Anonymous 20 days ago

  • Status changed from New to Pending release
Actions

Also available in: Atom PDF