-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Related to #55 looks like there may have been a regression as I'm encountering the same on version 0.35.0 now.
I've tried using this via nix run
, nix profile install
and installing via home-manager.
My nix flake is located at https://github.com/daracci/nix-config, I've tried this on the machine nixe and user racci.
Script
#!/usr/bin/env rust-script
fn main() {
println!("Hello World!");
}
Trace log
❯ RUST_LOG=trace ./test.rs
[2025-03-09T03:52:38Z INFO rust_script] Arguments: Args { script: Some("/home/racci/Downloads/./test2.rs"), script_args: [], expr: false, loop_: false, count: false, base_path: None, pkg_path: None, gen_pkg_only: false, cargo_output: false, clear_cache: false, debug: false, dep: [], extern_: [], force: false, unstable_features: [], build_kind: Normal, toolchain_version: None, wrapper: None }
[2025-03-09T03:52:38Z INFO rust_script] input: File("test2", "/home/racci/Downloads/./test2.rs", "#!/usr/bin/env rust-script\n\nfn main() {\n println!(\"Hello World!\");\n}\n\n", "/home/racci/Downloads")
[2025-03-09T03:52:38Z INFO rust_script] prelude_items: []
[2025-03-09T03:52:38Z INFO rust_script] id: "5f0fdb65fe6b61f469d0ffef"
[2025-03-09T03:52:38Z INFO rust_script] pkg_path: "/home/racci/.cache/rust-script/projects/5f0fdb65fe6b61f469d0ffef"
[2025-03-09T03:52:38Z INFO rust_script] using_cache: true
[2025-03-09T03:52:38Z INFO rust_script::manifest] part_mani: {}
[2025-03-09T03:52:38Z INFO rust_script::manifest] source: None
[2025-03-09T03:52:38Z INFO rust_script::manifest] manifest: [[bin]]
name = "test2_5f0fdb65fe6b61f469d0ffef"
path = "/home/racci/Downloads/./test2.rs"
[dependencies]
[package]
authors = ["Anonymous"]
edition = "2021"
name = "test2_5f0fdb65fe6b61f469d0ffef"
version = "0.1.0"
[profile.release]
strip = true
[2025-03-09T03:52:38Z INFO rust_script] action: InputAction { cargo_output: false, force_compile: false, execute: true, pkg_path: "/home/racci/.cache/rust-script/projects/5f0fdb65fe6b61f469d0ffef", script_path: "/home/racci/Downloads/./test2.rs", using_cache: true, toolchain_version: None, debug: false, manifest: "[[bin]]\nname = \"test2_5f0fdb65fe6b61f469d0ffef\"\npath = \"/home/racci/Downloads/./test2.rs\"\n\n[dependencies]\n\n[package]\nauthors = [\"Anonymous\"]\nedition = \"2021\"\nname = \"test2_5f0fdb65fe6b61f469d0ffef\"\nversion = \"0.1.0\"\n\n[profile.release]\nstrip = true\n", script: None, build_kind: Normal, bin_name: "test2_5f0fdb65fe6b61f469d0ffef", original_script_path: Some("/home/racci/Downloads/./test2.rs") }
[2025-03-09T03:52:38Z INFO rust_script] creating pkg dir...
[2025-03-09T03:52:38Z INFO rust_script] generating Cargo package...
[2025-03-09T03:52:38Z DEBUG rust_script] overwrite_file("/home/racci/.cache/rust-script/projects/5f0fdb65fe6b61f469d0ffef/Cargo.toml", _)
[2025-03-09T03:52:38Z DEBUG rust_script] Equal content
[2025-03-09T03:52:38Z INFO rust_script] disarming pkg dir cleanup...
[2025-03-09T03:52:38Z DEBUG rust_script] No old binary found
[2025-03-09T03:52:38Z INFO rust_script] cleaning cache with max_age: 604800000
[2025-03-09T03:52:38Z INFO rust_script] cutoff: 1740887558917 ms
[2025-03-09T03:52:38Z INFO rust_script] checking: "/home/racci/.cache/rust-script/projects/5f0fdb65fe6b61f469d0ffef"
[2025-03-09T03:52:38Z INFO rust_script] meta_mtime: 1741492029787 ms
[2025-03-09T03:52:38Z INFO rust_script] checking: "/home/racci/.cache/rust-script/projects/2a7c584f95ebe8ea3cbfbe7b"
[2025-03-09T03:52:38Z INFO rust_script] meta_mtime: 1741491822775 ms
[2025-03-09T03:52:38Z INFO rust_script] checking: "/home/racci/.cache/rust-script/projects/998963fb66782b8797be8ada"
[2025-03-09T03:52:38Z INFO rust_script] meta_mtime: 1741491866395 ms
[2025-03-09T03:52:38Z INFO rust_script] done cleaning cache.
error: No such file or directory (os error 2)
nix-info -m
❯ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.12.13-xanmod1, NixOS, 25.05 (Warbler), 25.05.20250224.0196c01`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Lix, like Nix) 2.91.1
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/racci/.config/nix/nix.conf:/nix/store/k8g9np6kqdljmbz23nkpdpaqzxj2nc98-stylix-kde-config/nix/store/k8g9np6kqdljmbz23nkpdpaqzxj2nc98-stylix-kde-config/nix/store/k8g9np6kqdljmbz23nkpdpaqzxj2nc98-stylix-kde-config/etc/xdg/nix/nix.conf:/home/racci/.nix-profile/etc/xdg/nix/nix.conf:/home/racci/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/racci/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/racci/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/zm68nasdmai8qzgzlb55m10mrl93dzqd-lix-2.91.1/share`
- nixpkgs: `/nix/store/593xvgv994xlkm5mb7w4p1xxnzrs9wv6-source`
fastfetch
❯ fastfetch
┌────────────────────────────────────────────────────────────┐
racci@nixe
▗▄▄▄ ▗▄▄▄▄ ▄▄▄▖ └────────────────────────────────────────────────────────────┘
▜███▙ ▜███▙ ▟███▛
▜███▙ ▜███▙▟███▛ ┌────────────────────────────────────────────────────────────┐
▜███▙ ▜██████▛ OS -> NixOS 25.05 (Warbler) x86_64
▟█████████████████▙ ▜████▛ ▟▙ │ ├ -> Linux 6.12.13-xanmod1
▟███████████████████▙ ▜███▙ ▟██▙ │ ├ -> 3120 (nix-system), 1153 (nix-user), 27 (nix-default)
▄▄▄▄▖ ▜███▙ ▟███▛ │ └ -> nushell 0.102.0
▟███▛ ▜██▛ ▟███▛ DE/WM -> Hyprland 0.47.0 (Wayland)
▟███▛ ▜▛ ▟███▛ │ ├ -> greetd (Wayland)
▟███████████▛ ▟██████████▙ │ ├ -> Adwaita [GTK2/3/4]
▜██████████▛ ▟███████████▛ │ ├ -> zellij 0.41.2
▟███▛ ▟▙ ▟███▛ │ ├ -> AMD Ryzen 9 5900X (24) @ 5.16 GHz
▟███▛ ▟██▙ ▟███▛ │ ├ -> NVIDIA GeForce GTX 1080 Ti [Discrete]
▟███▛ ▜███▙ ▝▀▀▀▀ │ ├ -> NVIDIA GeForce RTX 3090 [Discrete]
▜██▛ ▜███▙ ▜██████████████████▛ │ ├ -> 2.21 GiB / 16.00 GiB (14%) - tmpfs
▜▛ ▟████▙ ▜████████████████▛ │ ├ -> 1.56 TiB / 2.73 TiB (57%) - btrfs
▟██████▙ ▜███▙ │ ├ -> 1.81 TiB / 1.86 TiB (97%) - btrfs
▟███▛▜███▙ ▜███▙ │ ├ -> 25.38 GiB / 62.70 GiB (40%)
▟███▛ ▜███▙ ▜███▙ │ ├ -> 285.67 MiB / 31.35 GiB (1%)
▝▀▀▀ ▀▀▀▀▘ ▀▀▀▘ │ ├ -> 1 day, 20 hours, 34 mins
│ └ -> 2560x1440 @ 144 Hz in 27" [External]
│ └ -> 2560x1440 @ 144 Hz in 27" [External]
│ └ -> 2560x1440 @ 165 Hz in 28" [External]
SND -> Starship/Matisse HD Audio Controller Digital Stereo (IEC958) (100%)
│ ├ -> Youtube (Mozilla firefox)
│ └ -> Also Fitz - Schlatt Is Mad. (Paused)
└────────────────────────────────────────────────────────────┘
Metadata
Metadata
Assignees
Labels
No labels