You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the flake of zjstatus with nix flake check . when using a commit newer than 62e5013, the build will fail with the following error:
> Running phase: configurePhase
> will append /private/tmp/nix-build-zjstatus-deps-0.19.1.drv-0/source/.cargo-home/config.toml with contents of /nix/store/8fyaknmzzlgzmfxzn0my7fjwrcm3sykb-vendor-cargo-deps/config.toml
> default configurePhase, nothing to do
> Running phase: buildPhase
> ++ command cargo --version
> cargo 1.83.0 (5ffbef321 2024-10-29)
> ++ command cargo check --release --target wasm32-wasip1
> error: failed to parse manifest at `/private/tmp/nix-build-zjstatus-deps-0.19.1.drv-0/source/Cargo.toml`
>
> Caused by:
> cannot infer path for `zjstatus` bin
> Cargo doesn't know which to use because multiple target files found at `src/main.rs` and `src/bin/zjstatus.rs`.
For full logs, run 'nix log /nix/store/vmc65y5xzzpiv36gbb6qz4b0fix9dsvx-zjstatus-deps-0.19.1.drv'.
When using a commit before the specific one, everything works fine.
This also occurs in different other projects I maintain.
Reproduction
git clone https://github.com/dj95/zjstatus
Apply the following patch with git apply PATCH_FILE_NAME
First of all thanks for providing the flake! It's really awesome and simplifies packaging rust projects for nix.
Describe the bug
Starting with commit 62e5013, I cannot build my projects anymore, that only contain binaries within the
src/bin/
directory.I'm using this flake in https://github.com/dj95/zjstatus to package the project. Simplified, the project setup is
When building the flake of zjstatus with
nix flake check .
when using a commit newer than 62e5013, the build will fail with the following error:When using a commit before the specific one, everything works fine.
This also occurs in different other projects I maintain.
Reproduction
git clone https://github.com/dj95/zjstatus
git apply PATCH_FILE_NAME
nix flake check .
within the patched repositoryFeel free to message me in case you need more information.
The text was updated successfully, but these errors were encountered: