Skip to content

"build-script-build contains outdated or invalid JSON" #4855

Closed

Description

@dtolnay

Something is going wrong with miri in nightly-2026-02-12.

# Cargo.toml

[package]
name = "repro"
edition = "2024"
publish = false
// build.rs

fn main() {}
// src/main.rs

fn main() {}
$ cargo clean && cargo +nightly-2026-02-12 miri run
   Compiling repro v0.0.0
error: failed to run custom build command for `repro v0.0.0`

Caused by:
  process didn't exit successfully: `$RUSTUP_HOME/toolchains/nightly-2026-02-12-x86_64-unknown-linux-gnu/bin/cargo-miri runner target/miri/debug/build/repro-e8018e58e4b6ef17/build-script-build` (exit status: 1)
  --- stderr
  fatal error: file "target/miri/debug/build/repro-e8018e58e4b6ef17/build-script-build" contains outdated or invalid JSON; try `cargo clean`

Activity

  1. Pr0methean commented on Feb 12, 2026

    @Pr0methean

    The breakage happened tonight some time between 16:55 and 19:06 UTC-8.

  2. RalfJung commented on Feb 12, 2026

    @RalfJung
    Member

    Probably caused by rust-lang/rust#152240.
    Hopefully fixed by rust-lang/cargo#16631.

  3. Pr0methean commented on Feb 12, 2026

    @Pr0methean

    Is there any way we can have the affected build "yanked", or a new one released ahead of schedule, so that we don't have to temporarily pin the version, rebase all open PRs against that change, and then revert it?

  4. RalfJung commented on Feb 17, 2026

    @RalfJung
    Member

    Fixed by rust-lang/cargo#16631.

    Is there any way we can have the affected build "yanked", or a new one released ahead of schedule, so that we don't have to temporarily pin the version, rebase all open PRs against that change, and then revert it?

    There's no way to yank a Rust nightly release, nor any way to make a new nightly ahead of schedule, as far as I know.

  5. added a commit that references this issue on Feb 23, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions