zhaofengli / attic

Multi-tenant Nix Binary Cache
https://docs.attic.rs
Other
1.04k stars 79 forks source link

attic-client failing to build #106

Closed notohh closed 10 months ago

notohh commented 10 months ago

using the flake, throwing this after a nix flake update today

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/n3f5jawggcixlf8czwl6g6m8dnnd1xj6-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
Executing configureCargoCommonVars
decompressing cargo artifacts from /nix/store/3kzzxjbjrpk65k47bmpp34hmxz2g913q-attic-deps-0.1.0/target.tar.zst to target
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
will append /build/source/.cargo-home/config.toml with contents of /nix/store/fv65q6ws8iacw586vr8njmnmcibrbq6i-vendor-c>
default configurePhase, nothing to do
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
++ command cargo --version
cargo 1.75.0
++ command cargo build --release --message-format json-render-diagnostics -p attic-client -p attic-server
   Compiling attic v0.1.0 (/build/source/attic)
   Compiling lzma-sys v0.1.20
   Compiling xz2 v0.1.7
   Compiling async-compression v0.4.4
   Compiling attic-token v0.1.0 (/build/source/token)
   Compiling attic-server v0.1.0 (/build/source/server)
   Compiling attic-client v0.1.0 (/build/source/client)
error: unused import: `CacheNamePattern`
  --> client/src/cache.rs:17:35
   |
17 | pub use attic::cache::{CacheName, CacheNamePattern};
   |                                   ^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> client/src/main.rs:13:10
   |
13 |     deny(unused_imports, unused_mut, unused_variables,)
   |          ^^^^^^^^^^^^^^

error: could not compile `attic-client` (bin "attic") due to previous error
warning: build failed, waiting for other jobs to finish...
zhaofengli commented 10 months ago

A fix is in #105.

notohh commented 10 months ago

ahh missed that pr, thanks!