GNU bug report logs -
#50289
[PATCH] import: go: Fix import when import path redirects.
Previous Next
Reported by: Sarah Morgensen <iskarian <at> mgsn.dev>
Date: Tue, 31 Aug 2021 02:06:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 50289-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Sarah Morgensen <iskarian <at> mgsn.dev> skribis:
> * guix/import/go.scm (fetch-module-meta-data): If no meta entries
> have a matching import prefix, return the first entry instead of #f.
> ---
> X-Debbugs-CC: Attila Lendvai <attila <at> lendvai.name>
>
> Hello Guix,
>
> As reported by Attila on IRC, the Go importer currently chokes when the
> import path URL redirects, for example with "github.com/prometheus/tsdb".
>
> This is due to my modification to 'fetch-module-meta-data' to handle multiple
> package's meta tags on one page [0]. It selects the meta based on whether its
> import prefix matches the URL we requested. This breaks when the URL
> redirects but the import path is not changed (I did not realize that this
> was valid... go figure). This patch fixes that by falling back to the first
> meta if none match.
>
> [0] https://issues.guix.gnu.org/49591
Applied, thank you!
Ludo’.
This bug report was last modified 3 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.