all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sergey Trofimov <sarg@sarg.org.ru>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: guix-devel@gnu.org, "Felix Lechner" <felix.lechner@lease-up.com>,
	"Ludovic Courtès" <ludo@gnu.org>
Subject: Re: 09/09: lint: Append "/info/refs" to git-reference-url.
Date: Thu, 30 Mar 2023 08:13:00 +0200	[thread overview]
Message-ID: <878rfezrmz.fsf@sarg.org.ru> (raw)
In-Reply-To: <87pm8r0xnv.fsf@gmail.com>


Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello,
>
> guix-commits@gnu.org writes:
>
>>     lint: Append "/info/refs" to git-reference-url.
>>
> After this fix, I'm now seeing warnings from Github, e.g.:
>
> gnu/packages/rails.scm:675:2: ruby-activejob@7.0.4.3: scheduled 
> Software Heritage archival
> gnu/packages/rails.scm:282:2: ruby-activemodel@7.0.4.3: URI 
> https://github.com/rails/rails/info/refs not reachable: 403 
> ("Forbidden")


It seems that the `service=git-upload-pack` is important as it 
switches the protocol to "smart-http".

--8<---------------cut here---------------start------------->8---
~/devel/ext λ curl 
'https://github.com/sarg/dotfiles/info/refs?service=git-upload-pack'
001e# service=git-upload-pack
Warning: Binary output can mess up your terminal. Use "--output -" 
to tell
Warning: curl to output it to your terminal anyway, or consider 
"--output
Warning: <FILE>" to save to a file.
0000

~/devel/ext λ curl 'https://github.com/sarg/dotfiles/info/refs'
Please upgrade your git client.
GitHub.com no longer supports git over dumb-http: 
https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days
--8<---------------cut here---------------end--------------->8---

Maybe the linter should just use `git ls-remote` instead of 
guessing the url?
--8<---------------cut here---------------start------------->8---
~/devel/ext λ git ls-remote https://github.com/sarg/dotfiles
7707f77e8d9c11b5435c5901eca45be1a72d2054	HEAD
7707f77e8d9c11b5435c5901eca45be1a72d2054	refs/heads/master
--8<---------------cut here---------------end--------------->8---


  reply	other threads:[~2023-03-31 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <167993594172.19339.5508149737774069815@vcs2.savannah.gnu.org>
     [not found] ` <20230327165223.DC609C1391D@vcs2.savannah.gnu.org>
2023-03-30  2:40   ` 09/09: lint: Append "/info/refs" to git-reference-url Maxim Cournoyer
2023-03-30  6:13     ` Sergey Trofimov [this message]
2023-04-08 19:31       ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rfezrmz.fsf@sarg.org.ru \
    --to=sarg@sarg.org.ru \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.