Unverified Commit 0bb881bf authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #317572 from SFrijters/ruff-fix-completion

ruff: only generate completions if program can be executed
parents b33de800 7046b87d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ rustPlatform.buildRustPackage rec {
    "--skip=semantic::types::infer::tests::resolve_visible_def"
  ];

  postInstall = ''
  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd ruff \
      --bash <($out/bin/ruff generate-shell-completion bash) \
      --fish <($out/bin/ruff generate-shell-completion fish) \