Text of issues.guix.gnu.org › 36734 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

‘guix lint -c source’ treats redirects as warnings

Ludovic 7 years ago Simon 1 months ago ‘guix lint -c source’ treats redirects as warnings Open Details 2 participants Ludovic Courtès Simon Tournier Owner unassigned Submitted by Ludovic Courtès Severity normal Debbugs page Hello! I noticed that ‘guix lint -c source’ would incorrectly treat redirects as errors: Toggle snippet (5 lines) $ ./pre-inst-env guix lint -c source iml gnu/packages/algebra.scm:1508:5: warning: iml@1.0.5: all the source URIs are unreachable: gnu/packages/algebra.scm:1508:5: warning: iml@1.0.5: permanent redirect from http://www.cs.uwaterloo.ca/~astorjoh/iml-1.0.5.tar.bz2 to https://cs.uwaterloo.ca/~astorjoh/iml-1.0.5.tar.bz2 This is because ‘validate-uri’ returns a warning for redirects, whereas before commit 50fc2384feb3bb2677d074f8f0deb5ae3c56b4d8 the code did: ((= 301 (response-code argument)) (if (response-location argument) (begin (emit-warning package (format #f (G_ "permanent redirect from ~a to ~a") (uri->string uri) (uri->string (response-location argument)))) #t) (begin (emit-warning package (format #f (G_ "invalid permanent redirect \ from ~a") (uri->string uri))) #f))) IOW, ‘validate-uri’ would return true *and* emit a warning as a side effect.

I’m not sure how to achieve the same result now. Thoughts? Thanks, Ludo’. Hi Ludo, For more context, please check out: https://issues.guix.gnu.org/issue/36734 On Sat, 20 Jul 2019 at 01:37, Ludovic Courtès <ludo@gnu.org> wrote: Toggle quote (3 lines) > I noticed that ‘guix lint -c source’ would incorrectly treat redirects > as errors: After 7 years, 11 weeks and 3 days, this ticket feels really alone, especially when the bug is still there, if I read correctly.

Toggle quote (27 lines) > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix lint -c source iml > gnu/packages/algebra.scm:1508:5: warning: iml@1.0.5: all the source URIs are unreachable: > gnu/packages/algebra.scm:1508:5: warning: iml@1.0.5: permanent redirect from http://www.cs.uwaterloo.ca/~astorjoh/iml-1.0.5.tar.bz2 to https://cs.uwaterloo.ca/~astorjoh/iml-1.0.5.tar.bz2 > --8<---------------cut here---------------end--------------->8--- > > This is because ‘validate-uri’ returns a warning for redirects, whereas > before commit 50fc2384feb3bb2677d074f8f0deb5ae3c56b4d8 the code did: > > ((= 301 (response-code argument)) > (if (response-location argument) > (begin > (emit-warning package > (format #f (G_ "permanent redirect from ~a to ~a") > (uri->string uri) > (uri->string > (response-location argument)))) > #t) > (begin > (emit-warning package > (format #f (G_ "invalid permanent redirect \ > from ~a") > (uri->string uri))) > #f))) > > IOW, ‘validate-uri’ would return true *and* emit a warning as a side effect.

Well, after more than 7 years, maybe this bug is now a feature. ;-) Considering the project switched from Debbugs to Codeberg on 2025 [::] and considering the migration path states that both ’bug-guix’ and ’guix-patches’ mailing lists should be now in “Emergency Moderation” mode, what could be the best next action? Closing without any further action? Let it here waiting a bit more? Transferring to Codeberg as a fresh issue?

WDYT? Cheers, simon PS: This message contributes to the effort of transferring (or closing!) the open tickets from the deprecated tracker system to the current issue tracker hosted on Codeberg https://codeberg.org/guix/guix . Please join the effort by cleaning all your tickets that remain open. :: https://codeberg.org/guix/guix-consensus-documents/src/commit/e31476f12cd9d4b7138e423d938691eda42a3dff/002-codeberg.md ? Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 36734@debbugs.gnu.org To respond to this issue using the mumi CLI, first switch to it mumi current 36734 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 You may also tag this issue. See list of standard tags . For example, to set the confirmed and easy tags mumi command -t +confirmed -t +easy Or, remove the moreinfo tag and set the help tag mumi command -t -moreinfo -t +help