unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Sergey Trofimov <sarg@sarg.org.ru>
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: Sat, 08 Apr 2023 15:31:19 -0400	[thread overview]
Message-ID: <87mt3irx14.fsf@gmail.com> (raw)
In-Reply-To: <878rfezrmz.fsf@sarg.org.ru> (Sergey Trofimov's message of "Thu,  30 Mar 2023 08:13:00 +0200")

Hi Sergey,

Sergey Trofimov <sarg@sarg.org.ru> writes:

> 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".
>
> ~/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
>
>
> Maybe the linter should just use `git ls-remote` instead of 
> guessing the url?
>
> ~/devel/ext λ git ls-remote https://github.com/sarg/dotfiles
> 7707f77e8d9c11b5435c5901eca45be1a72d2054	HEAD
> 7707f77e8d9c11b5435c5901eca45be1a72d2054	refs/heads/master

That sounds like a better way to me!

-- 
Thanks,
Maxim


      reply	other threads:[~2023-04-08 19:31 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
2023-04-08 19:31       ` Maxim Cournoyer [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87mt3irx14.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=sarg@sarg.org.ru \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).