Skip to content

Commit

Permalink
fix(rust-analyzer): disable "poking"
Browse files Browse the repository at this point in the history
`rust-analyzer` uses `CFG_RELEASE` env var to determine, whether it
should "poke" users on failures - this feature is meant for
rust-analyzer developers only, which is a different target audience than
expected users of this flake

See:
- https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/build.rs#L9-L11
- https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/src/lsp/utils.rs#L99-L116

Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Aug 16, 2024
1 parent 6e4233d commit 7fd6253
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ nightlyToolchains.${v} // rec {
];
doCheck = false;
CARGO_INCREMENTAL = 0;
# ensure `rust-analyzer` is built in release mode https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/build.rs#L9
CFG_RELEASE = 1;
RUST_ANALYZER_REV = rust-analyzer-rev;
meta = {
maintainers = with maintainers; [ figsoda ];
Expand Down

0 comments on commit 7fd6253

Please sign in to comment.