Skip to content

cargo-gpu-install doesn't recompile things when code changes #606

Open

Description

@nazar-pc

When using cargo-gpu-install from build.rs, shader is not recompiled on source code changes unless build.rs changes too.

This is essentially a flavor of #575, but this time about source code.

Activity

  1. added
    bug
    on May 30, 2026
  2. Firestar99 commented on May 31, 2026

    @Firestar99
    Member

    Have you enabled spirv_builder.build_script.defaults = true?

  3. nazar-pc commented on Nov 19, 2026

    @nazar-pc
    ContributorAuthor

    Okay, I think things might work correctly for regular builds, but not for Clippy. I added panic at the end of build script to see what it emits, and turns out not much:

    warning: `ab-proof-of-space-gpu` (build script) generated 1 warning
    warning: ab-proof-of-space-gpu@0.1.0: warning: unknown lint: `clippy::large_unopt_stack_frames`
    warning: ab-proof-of-space-gpu@0.1.0:  --> crates/farmer/ab-proof-of-space-gpu/src/shader/find_proofs.rs:4:9
    warning: ab-proof-of-space-gpu@0.1.0:   |
    warning: ab-proof-of-space-gpu@0.1.0: 4 |         clippy::large_unopt_stack_frames,
    warning: ab-proof-of-space-gpu@0.1.0:   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::large_stack_frames`
    warning: ab-proof-of-space-gpu@0.1.0:   |
    warning: ab-proof-of-space-gpu@0.1.0:   = note: `#[warn(unknown_lints)]` on by default
    warning: ab-proof-of-space-gpu@0.1.0: 
    error: failed to run custom build command for `ab-proof-of-space-gpu v0.1.0 (/web/github/abundance/crates/farmer/ab-proof-of-space-gpu)`
    
    Caused by:
      process didn't exit successfully: `/home/nazar-pc/.cache/cargo/target/debug/build/ab-proof-of-space-gpu/b5a9dab21f4f837f/out/build_script_build` (exit status: 101)
      --- stdout
      cargo::rerun-if-env-changed=CLIPPY_ARGS
      cargo::rerun-if-env-changed=MIRI_SYSROOT
      cargo::rerun-if-env-changed=RUSTDOCFLAGS
      cargo:rerun-if-changed=/web/github/abundance/Cargo.lock
      cargo:rerun-if-env-changed=RUSTGPU_CODEGEN_ARGS
      cargo:rerun-if-env-changed=RUSTGPU_RUSTFLAGS
      cargo:rerun-if-env-changed=RUSTGPU_CARGOFLAGS
      cargo::warning=warning: unknown lint: `clippy::large_unopt_stack_frames`
      cargo::warning= --> crates/farmer/ab-proof-of-space-gpu/src/shader/find_proofs.rs:4:9
      cargo::warning=  |
      cargo::warning=4 |         clippy::large_unopt_stack_frames,
      cargo::warning=  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::large_stack_frames`
      cargo::warning=  |
      cargo::warning=  = note: `#[warn(unknown_lints)]` on by default
      cargo::warning=
      cargo::rustc-env=SHADER_PATH=/home/nazar-pc/.cache/cargo/target/debug/build/ab-proof-of-space-gpu/92f2e9fbab0b78a0/out/empty.bin
    
      --- stderr
    
      thread 'main' (3734996) panicked at crates/farmer/ab-proof-of-space-gpu/build.rs:91:5:
      explicit panic
    

    Zero .rs files in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions