Main is failing to build on Nix #896

Closed
opened 2025-07-07 20:03:14 +00:00 by transgwender · 5 comments
Contributor

So, with the recent nix merges, I'm running into this issue when switching back to main:

error: builder for '/nix/store/ii2qrqm4rsbgwf9l221wlz99gqwqy0a5-conduwuit-deps-0.5.0-rc.6.drv' failed with exit code 101;
       last 22 log lines:
       > cargoArtifacts not set, will not reuse any cargo artifacts
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source
       > source root is source
       > Running phase: patchPhase
       > Executing configureCargoCommonVars
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > will append /build/source/.cargo-home/config.toml with contents of /nix/store/wml0nxmhlx1q2i5257gq54r2i8cq04hh-vendor-cargo-deps/config.toml
       > default configurePhase, nothing to do
       > Running phase: buildPhase
       > +++ command cargo --version
       > cargo 1.87.0 (99624be96 2025-05-06)
       > +++ command cargo check --release --no-default-features --locked --features blurhashing,brotli_compression,element_hacks,gzip_compression,io_uring,jemalloc,jemalloc_conf,journald,media_thumbnail,release_max_log_level,systemd,url_preview,zstd_compression --all-targets
       > error: failed to load manifest for workspace member `/build/source/xtask/*`
       > referenced by workspace at `/build/source/Cargo.toml`
       >
       > Caused by:
       >   failed to read `/build/source/xtask/*/Cargo.toml`
       >
       > Caused by:
       >   No such file or directory (os error 2)
       For full logs, run 'nix log /nix/store/ii2qrqm4rsbgwf9l221wlz99gqwqy0a5-conduwuit-deps-0.5.0-rc.6.drv'.
error: 1 dependencies of derivation '/nix/store/lyazl8q9x10cqbk3c25cz9ka3mi4q181-conduwuit-0.5.0-rc.6.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m4wmcgy7wll0i5fxvv9s65prshw1y1if-unit-conduit.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d7qrw4dff92p9nw8vikhn4lhpb3qwxj5-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xmysg995ycfhdz22hx4rlpnf23s8l9zi-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bwmmv6wl7nnzscw0bq5gl0jcghignqrx-nixos-system-nixos-25.11.20250707.73feb5e.drv' failed to build

Both individual PRs, #891 and #885, work fine when used as the build. But the current main seems to be busted aside from that

So, with the recent nix merges, I'm running into this issue when switching back to main: ``` error: builder for '/nix/store/ii2qrqm4rsbgwf9l221wlz99gqwqy0a5-conduwuit-deps-0.5.0-rc.6.drv' failed with exit code 101; last 22 log lines: > cargoArtifacts not set, will not reuse any cargo artifacts > Running phase: unpackPhase > unpacking source archive /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source > source root is source > Running phase: patchPhase > Executing configureCargoCommonVars > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > will append /build/source/.cargo-home/config.toml with contents of /nix/store/wml0nxmhlx1q2i5257gq54r2i8cq04hh-vendor-cargo-deps/config.toml > default configurePhase, nothing to do > Running phase: buildPhase > +++ command cargo --version > cargo 1.87.0 (99624be96 2025-05-06) > +++ command cargo check --release --no-default-features --locked --features blurhashing,brotli_compression,element_hacks,gzip_compression,io_uring,jemalloc,jemalloc_conf,journald,media_thumbnail,release_max_log_level,systemd,url_preview,zstd_compression --all-targets > error: failed to load manifest for workspace member `/build/source/xtask/*` > referenced by workspace at `/build/source/Cargo.toml` > > Caused by: > failed to read `/build/source/xtask/*/Cargo.toml` > > Caused by: > No such file or directory (os error 2) For full logs, run 'nix log /nix/store/ii2qrqm4rsbgwf9l221wlz99gqwqy0a5-conduwuit-deps-0.5.0-rc.6.drv'. error: 1 dependencies of derivation '/nix/store/lyazl8q9x10cqbk3c25cz9ka3mi4q181-conduwuit-0.5.0-rc.6.drv' failed to build error: 1 dependencies of derivation '/nix/store/m4wmcgy7wll0i5fxvv9s65prshw1y1if-unit-conduit.service.drv' failed to build error: 1 dependencies of derivation '/nix/store/d7qrw4dff92p9nw8vikhn4lhpb3qwxj5-system-units.drv' failed to build error: 1 dependencies of derivation '/nix/store/xmysg995ycfhdz22hx4rlpnf23s8l9zi-etc.drv' failed to build error: 1 dependencies of derivation '/nix/store/bwmmv6wl7nnzscw0bq5gl0jcghignqrx-nixos-system-nixos-25.11.20250707.73feb5e.drv' failed to build ``` Both individual PRs, #891 and #885, work fine when used as the build. But the current main seems to be busted aside from that
Author
Contributor

Going back, it seems to be potentially related to this change? d98ce2c7b9 (diff-1b290eb385892bfd4870c08a785598e98c8691b7)

- members = ["src/*"]
+ members = ["src/*", "xtask/*"]
Going back, it seems to be potentially related to this change? https://forgejo.ellis.link/continuwuation/continuwuity/commit/d98ce2c7b9ff248989bea363907ba4709743febd#diff-1b290eb385892bfd4870c08a785598e98c8691b7 ``` - members = ["src/*"] + members = ["src/*", "xtask/*"] ```
Owner

That error looks like it's choking on the glob include of the new crates for the documentation generation. I'm not sure if the Nix rust stuff just doesn't support that feature?

That error looks like it's choking on the glob include of the new crates for the documentation generation. I'm not sure if the Nix rust stuff just doesn't support that feature?
Author
Contributor

I'm trying to isolate the behaviour, because it feels like it should work if src/* hasnt been causing any issues either

I'm trying to isolate the behaviour, because it feels like it should work if src/* hasnt been causing any issues either
Author
Contributor
unpacking source archive /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source
source root is source
[...]
error: failed to load manifest for workspace member `/build/source/xtask/*`
referenced by workspace at `/build/source/Cargo.toml`

Caused by:
  failed to read `/build/source/xtask/*/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

[jasmine@nixos:~/.dotfiles/nixos]$ ls /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source
Cargo.lock  Cargo.toml  src

It looks like the files for src is being loaded to store, but the files for xtask isnt?

``` unpacking source archive /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source source root is source [...] error: failed to load manifest for workspace member `/build/source/xtask/*` referenced by workspace at `/build/source/Cargo.toml` Caused by: failed to read `/build/source/xtask/*/Cargo.toml` Caused by: No such file or directory (os error 2) [jasmine@nixos:~/.dotfiles/nixos]$ ls /nix/store/2yffjdswdixffgwxi1iipr6pwy12pajk-source Cargo.lock Cargo.toml src ``` It looks like the files for src is being loaded to store, but the files for xtask isnt?
Author
Contributor

Fixed with merge

Fixed with merge
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#896
No description provided.