Hi!

I get an error when running =guix lint=:

#+BEGIN_EXAMPLE text
$ ./pre-inst-env guix lint catch2@3.8.1
guix: lint: command not found
hint: Did you mean `lint'?

Try `guix --help' for more information.
#+END_EXAMPLE

I'm not in a guix shell though.

The guix handbook talks a lot about running =guix style=, =guix lint=, etc.  in chapter 22.10 Submitting Patches[0] but nowhere mentions the use of `./pre-inst-env` or `guix shell`, so there is some room for improvement here, I guess.

Chaper 22.2 Building from Git[1] mentions to run =guix shell -D guix -CPW=, but if I try to run =guix lint= in there, I'm getting errors about network access. If I add the =--network= parameter, it still complains about SSL certificates not being verifiable, so I needed to run this in the end, which finally worked:

#+BEGIN_EXAMPLE text
$ guix shell --container --link-profile --nesting --network --development guix nss-certs
#+END_EXAMPLE

IMHO this should be documented somewhere.

It took me, reading a lot of documentation, asking a friend who is a seasoned guix developer and asking on IRC a number of times to piece all the necessary bits together.

And the error message about =lint= not existing and asking whether I have misspelled it and rather meant =lint=  doesn't make sense and IMHO should never happen.

Cheers

nomike

[0] https://guix.gnu.org/manual/devel/en/html_node/Submitting-Patches.html
[1] https://guix.gnu.org/manual/devel/en/html_node/Building-from-Git.html




Reply via email to