rust-clippy does not provide the clippy command

  • Open
  • quality assurance status badge
Details
2 participants
  • Luis Felipe
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Luis Felipe
Severity
normal
L
L
Luis Felipe wrote on 2 Oct 2020 02:08
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
2rbIiYx4GllHj49TJv9xIQllQEZFa8B_vusvuULy6SB0xRaiBpFOEBYiTkelDgNCegAhGiil7XNCO_hbSsMVN4Wmg3Du3uiYrwOf7dja-kU=@protonmail.com
I'm using guix b61e057 in the Guix System.

After installing rust-clippy (version 0.0.302), the "clippy" command is not found.


## Steps to reproduce

1. Open a terminal.
2. $ cd some-rust-project
3. $ cargo clippy


## Expected result

Clippy lints the project.


## Unexpected result

error: no such subcommand: `clippy`


## Additional information

Running the "rust-run-clippy" in Emacs results in the same error.

In the #guix channel, mroh checked the "rust-clippy" package and mentioned that it doesn't seem to have any output, which looks like a bug.



---
Luis Felipe López Acevedo
T
T
Tobias Geerinckx-Rice wrote on 2 Oct 2020 11:46
87h7rd7yep.fsf@nckx
Luis Felipe via Bug reports for GNU Guix ???
Toggle quote (4 lines)
> In the #guix channel, mroh checked the "rust-clippy" package and
> mentioned that it doesn't seem to have any output, which looks
> like a bug.

No, it's intentional:

(arguments
`(#:skip-build? #t

This means that Clippy was packaged to satisfy a dependency of
another package, but not (yet) to be useful on its own.

When I try to build it, I get:

Toggle snippet (11 lines)
error: failed to run custom build command for `clippy v0.0.302
Caused by:
process didn't exit successfully:
`/tmp/guix-build-rust-clippy-0.0.302.drv-0/clippy-0.0.302/target/release/build/clippy-bee5bea0d583d718/build-script-build`
(exit code: 1)
--- stderr
error: Clippy is no longer available via crates.io

help: please run `rustup component add clippy-preview` instead

It seems[0] to track Rust releases now.

Kind regards,

T G-R

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX3b3Dw0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW151RABAKfO00RJizA2H+LXs3Xu7jS6GOPkXpncDS95E42x
TqiOAQDbIAsCTXf5VHLl74GMv3u2B3SFEcIikZ+OUssDCxXlAw==
=PDUa
-----END PGP SIGNATURE-----

?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 43753@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 43753
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch