`./pre-inst-env guix lint` does not work at all

  • Done
  • quality assurance status badge
Details
4 participants
  • Andreas Enge
  • Maxim Cournoyer
  • nomike (they/them)
  • Simon Tournier
Owner
unassigned
Submitted by
nomike (they/them)
Severity
normal

Debbugs page

N
N
nomike (they/them) wrote on 29 Apr 06:57 -0700
(address . bug-guix@gnu.org)
f773dc2f-58f5-4883-9420-caf885793c2a@nomike.com
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

M
M
Maxim Cournoyer wrote on 29 Apr 16:24 -0700
(name . nomike (they/them))(address . nomike@nomike.com)(address . 78133@debbugs.gnu.org)
87frhqa6w2.fsf@gmail.com
Hi,

"nomike (they/them)" <nomike@nomike.com> writes:

Toggle quote (12 lines)
> 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 don't reproduce:

Toggle snippet (4 lines)
~/src/guix$ ./pre-inst-env guix lint catch2@3.8.1
guix lint: error: catch2: package not found for version 3.8.1

I'm not in a Guix shell environment, though I have a few Guile packages
installed in my user profile:

Toggle snippet (12 lines)
$ guix package -I ^guile
guile-ssh 0.18.0 out /gnu/store/mz4ib7rlcwxqahrbcg7njbi6r9ivjchb-guile-ssh-0.18.0
guile-sqlite3 0.1.3 out /gnu/store/fjn1zy1hp882ss7k76w2jv7ma3r3d99v-guile-sqlite3-0.1.3
guile-readline 3.0.9 out /gnu/store/krbmim8zwwihgdn6jfyxzhnk320qfajz-guile-readline-3.0.9
guile-lib 0.2.8 out /gnu/store/p7qx1yhxlz61r1hpcgdvdhqq343cryyp-guile-lib-0.2.8
guile-json 4.7.3 out /gnu/store/711y2zrpg0ygxaghy72v8hzwla7mjaqg-guile-json-4.7.3
guile-hall 0.4.1-1.7558ba9 out /gnu/store/q2clfp1c8hghxnpddfsbgcq4qa2z02s4-guile-hall-0.4.1-1.7558ba9
guile-charting 0.2.0-1.75f755b out /gnu/store/bw0zq2f49q7yjspckd6gdwm7fsqvv9aw-guile-charting-0.2.0-1.75f755b
guile-ac-d-bus 1.0.0-beta.0 out /gnu/store/ssf3zj7cbaypqgwm48k3z3hlpifjz3ir-guile-ac-d-bus-1.0.0-beta.0
guile 3.0.9 out /gnu/store/2dqynvxbfhw39bq8phw3kbpxcpd5yg0a-guile-3.0.9

--
Thanks,
Maxim
S
S
Simon Tournier wrote on 16 Jun 05:22 -0700
control message for bug #78133
(address . control@debbugs.gnu.org)
87zfe76fla.fsf@gmail.com
tags 78133 + moreinfo
quit
A
A
Andreas Enge wrote on 1 Aug 10:47 -0700
Close
(address . 78133-done@debbugs.gnu.org)
aIz9whu41KO1cNuF@jurong
Closing as not reproducible.

Andreas
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 78133@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 78133
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