GNU bug report logs - #30434
magit won’t work over TRAMP

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Mon, 12 Feb 2018 12:54:01 UTC

Severity: normal

To reply to this bug, email your comments to 30434 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Mon, 12 Feb 2018 12:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 12 Feb 2018 12:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: magit won’t work over TRAMP
Date: Mon, 12 Feb 2018 13:53:22 +0100
The default value for “magit-git-executable” (when magit is installed
via Guix) appears to be a store path, such as
“/gnu/store/l7g5r1c2i0bf3cd71g53ajy8khdcyidz-git-2.16.1/bin/git”.  This
means that when magit is used over TRAMP it will try to find the exact
same git executable on the remote.

Instead, magit should only look for “git” on the remote, not for the
exact store location of a particular git executable.

I could only use magit over TRAMP after setting “magit-git-executable”
to “git”.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Mon, 12 Feb 2018 17:34:03 GMT) Full text and rfc822 format available.

Message #8 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Mon, 12 Feb 2018 20:33:17 +0300
Ricardo Wurmus (2018-02-12 13:53 +0100) wrote:

> The default value for “magit-git-executable” (when magit is installed
> via Guix) appears to be a store path, such as
> “/gnu/store/l7g5r1c2i0bf3cd71g53ajy8khdcyidz-git-2.16.1/bin/git”.  This
> means that when magit is used over TRAMP it will try to find the exact
> same git executable on the remote.
>
> Instead, magit should only look for “git” on the remote, not for the
> exact store location of a particular git executable.
>
> I could only use magit over TRAMP after setting “magit-git-executable”
> to “git”.

If people will agree that changing 'magit-git-executable' is not needed,
then I think 'git' can be removed from the inputs as it is used just for
that variable.

P.S.  I also use just "git" for 'magit-git-executable'.

-- 
Alex




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Mon, 12 Feb 2018 19:53:02 GMT) Full text and rfc822 format available.

Message #11 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Alex Kost <alezost <at> gmail.com>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Mon, 12 Feb 2018 14:51:40 -0500
Alex Kost <alezost <at> gmail.com> writes:

> Ricardo Wurmus (2018-02-12 13:53 +0100) wrote:
>
>> The default value for “magit-git-executable” (when magit is installed
>> via Guix) appears to be a store path, such as
>> “/gnu/store/l7g5r1c2i0bf3cd71g53ajy8khdcyidz-git-2.16.1/bin/git”.  This
>> means that when magit is used over TRAMP it will try to find the exact
>> same git executable on the remote.
>>
>> Instead, magit should only look for “git” on the remote, not for the
>> exact store location of a particular git executable.
>>
>> I could only use magit over TRAMP after setting “magit-git-executable”
>> to “git”.
>
> If people will agree that changing 'magit-git-executable' is not needed,
> then I think 'git' can be removed from the inputs as it is used just for
> that variable.
>
> P.S.  I also use just "git" for 'magit-git-executable'.

That's fine with me.  IIRC, I was the one who arranged to set
'magit-git-executable' to an absolute path in the store, but in
retrospect I'm not sure it makes sense in this case, especially if it
breaks TRAMP.

     Regards,
       Mark




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Tue, 13 Feb 2018 14:59:02 GMT) Full text and rfc822 format available.

Message #14 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Alex Kost <alezost <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Mon, 12 Feb 2018 20:11:19 +0100
Alex Kost <alezost <at> gmail.com> writes:

> Ricardo Wurmus (2018-02-12 13:53 +0100) wrote:
>
>> The default value for “magit-git-executable” (when magit is installed
>> via Guix) appears to be a store path, such as
>> “/gnu/store/l7g5r1c2i0bf3cd71g53ajy8khdcyidz-git-2.16.1/bin/git”.  This
>> means that when magit is used over TRAMP it will try to find the exact
>> same git executable on the remote.
>>
>> Instead, magit should only look for “git” on the remote, not for the
>> exact store location of a particular git executable.
>>
>> I could only use magit over TRAMP after setting “magit-git-executable”
>> to “git”.
>
> If people will agree that changing 'magit-git-executable' is not needed,
> then I think 'git' can be removed from the inputs as it is used just for
> that variable.
>
> P.S.  I also use just "git" for 'magit-git-executable'.

It took me way too long to figure out that this was the cause.  I played
with TRAMP settings before that and only noticed that something was off
when I looked at the verbose TRAMP debug logs.

I think it makes sense *not* to hardcode the path to the git executable
here.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Reply sent to Mark H Weaver <mhw <at> netris.org>:
You have taken responsibility. (Wed, 14 Feb 2018 08:52:02 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Wed, 14 Feb 2018 08:52:02 GMT) Full text and rfc822 format available.

Message #19 received at 30434-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Alex Kost <alezost <at> gmail.com>, 30434-done <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Wed, 14 Feb 2018 03:51:06 -0500
Ricardo Wurmus <rekado <at> elephly.net> writes:
> I think it makes sense *not* to hardcode the path to the git executable
> here.

Agreed.  Done, in commit 5fe9ba59ba1cea12a70d011aacbace52e3bfda18 on
master and commit 317e8e9404058af35d9843e076934560f95d895a on
core-updates.  I'm closing this bug now.

    Thanks,
      Mark




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Wed, 14 Feb 2018 17:01:02 GMT) Full text and rfc822 format available.

Message #22 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: 30434 <at> debbugs.gnu.org
Cc: rekado <at> elephly.net, mhw <at> netris.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Wed, 14 Feb 2018 20:00:06 +0300
Mark H Weaver (2018-02-14 03:51 -0500) wrote:

> Ricardo Wurmus <rekado <at> elephly.net> writes:
>> I think it makes sense *not* to hardcode the path to the git executable
>> here.
>
> Agreed.  Done, in commit 5fe9ba59ba1cea12a70d011aacbace52e3bfda18 on
> master and commit 317e8e9404058af35d9843e076934560f95d895a on
> core-updates.  I'm closing this bug now.

You didn't remove "git" from the inputs.  I think it is not needed now.

-- 
Alex




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Wed, 14 Feb 2018 18:19:02 GMT) Full text and rfc822 format available.

Message #25 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Alex Kost <alezost <at> gmail.com>
Cc: rekado <at> elephly.net, 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Wed, 14 Feb 2018 13:17:57 -0500
Hi Alex,

Alex Kost <alezost <at> gmail.com> writes:

> Mark H Weaver (2018-02-14 03:51 -0500) wrote:
>
>> Ricardo Wurmus <rekado <at> elephly.net> writes:
>>> I think it makes sense *not* to hardcode the path to the git executable
>>> here.
>>
>> Agreed.  Done, in commit 5fe9ba59ba1cea12a70d011aacbace52e3bfda18 on
>> master and commit 317e8e9404058af35d9843e076934560f95d895a on
>> core-updates.  I'm closing this bug now.
>
> You didn't remove "git" from the inputs.  I think it is not needed now.

I removed it on my first attempt, but the build failed.  See below.

      Mark

--8<---------------cut here---------------start------------->8---
starting phase `build'
Cannot open load file: No such file or directory, /tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/magit-version.el
make[1]: Entering directory '/tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/Documentation'
make[1]: Entering directory '/tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/lisp'
Cannot open load file: No such file or directory, /tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/Documentation/magit-version.el
Generating magit.info
Compiling git-commit.el
Compiling magit-popup.el
Compiling magit-utils.el
Generating magit-autoloads.el
Generating magit-version.el
Compiling magit-section.el
Compiling magit-git.el
Compiling magit-mode.el
Compiling magit-margin.el
Compiling magit-process.el
Generating magit-popup.info
Compiling magit-autorevert.el
Compiling magit-core.el
Compiling magit-diff.el
Generating dir
make[1]: Leaving directory '/tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/Documentation'
Compiling magit-repos.el
Compiling magit-log.el
Compiling magit-wip.el
Compiling magit-apply.el
Compiling magit.el
Compiling magit-refs.el
Compiling magit-status.el

In toplevel form:
magit-status.el:30:1:Error: Searching for program: No such file or directory, git
make[1]: *** [Makefile:61: magit-status.elc] Error 1
make[1]: *** Waiting for unfinished jobs....

In toplevel form:
magit-refs.el:30:1:Error: Searching for program: No such file or directory, git
make[1]: *** [Makefile:61: magit-refs.elc] Error 1
make[1]: Leaving directory '/tmp/guix-build-magit-2.11.0.drv-0/magit-2.11.0/lisp'
make: *** [Makefile:75: lisp] Error 2
phase `build' failed after 7.5 seconds
--8<---------------cut here---------------end--------------->8---




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Thu, 15 Feb 2018 19:40:02 GMT) Full text and rfc822 format available.

Message #28 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: Mark H Weaver <mhw <at> netris.org>
Cc: rekado <at> elephly.net, 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Thu, 15 Feb 2018 22:38:56 +0300
Mark H Weaver (2018-02-14 13:17 -0500) wrote:

> Hi Alex,
>
> Alex Kost <alezost <at> gmail.com> writes:
>
>> Mark H Weaver (2018-02-14 03:51 -0500) wrote:
>>
>>> Ricardo Wurmus <rekado <at> elephly.net> writes:
>>>> I think it makes sense *not* to hardcode the path to the git executable
>>>> here.
>>>
>>> Agreed.  Done, in commit 5fe9ba59ba1cea12a70d011aacbace52e3bfda18 on
>>> master and commit 317e8e9404058af35d9843e076934560f95d895a on
>>> core-updates.  I'm closing this bug now.
>>
>> You didn't remove "git" from the inputs.  I think it is not needed now.
>
> I removed it on my first attempt, but the build failed.  See below.

Oh, right, sorry.  I use my own package for magit and it dosn't require
git input, so I thought that the original guix package also doesn't need
it.  Sorry for the confusion :-)

-- 
Alex




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Fri, 16 Feb 2018 09:11:02 GMT) Full text and rfc822 format available.

Message #31 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Alex Kost <alezost <at> gmail.com>
Cc: rekado <at> elephly.net, 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Fri, 16 Feb 2018 04:09:38 -0500
Alex Kost <alezost <at> gmail.com> writes:

> Mark H Weaver (2018-02-14 13:17 -0500) wrote:
>
>> Alex Kost <alezost <at> gmail.com> writes:
>>
>>> You didn't remove "git" from the inputs.  I think it is not needed now.
>>
>> I removed it on my first attempt, but the build failed.  See below.
>
> Oh, right, sorry.  I use my own package for magit and it dosn't require
> git input, so I thought that the original guix package also doesn't need
> it.  Sorry for the confusion :-)

How does your own magit package avoid requiring git as an input?  I'd be
curious to see the diff between your package definition and ours.

       Mark




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Fri, 16 Feb 2018 16:57:01 GMT) Full text and rfc822 format available.

Message #34 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Fri, 16 Feb 2018 19:56:36 +0300
[Message part 1 (text/plain, inline)]
Mark H Weaver (2018-02-16 04:09 -0500) wrote:

> Alex Kost <alezost <at> gmail.com> writes:
>
>> Mark H Weaver (2018-02-14 13:17 -0500) wrote:
>>
>>> Alex Kost <alezost <at> gmail.com> writes:
>>>
>>>> You didn't remove "git" from the inputs.  I think it is not needed now.
>>>
>>> I removed it on my first attempt, but the build failed.  See below.
>>
>> Oh, right, sorry.  I use my own package for magit and it dosn't require
>> git input, so I thought that the original guix package also doesn't need
>> it.  Sorry for the confusion :-)
>
> How does your own magit package avoid requiring git as an input?  I'd be
> curious to see the diff between your package definition and ours.

My version of magit is attached.  Actually this problem (requiring git
during compilation) was introduced occasionally in Magit 2.11.0 and was
fixed soon after that, so "git" input will not be needed in the next
release.

If you want more details, tarsius (the maintainer of Magit) added some
code to bring attention for his fundraising campaign:

  https://github.com/magit/magit/commit/bf71241122e1a0bf707913c87493214ceb12f588

Then he made a release (2.11.0), but that commit introduced the
compilation fail if git wasn't available at compile-time.  This was
fixed right after the release (at the same day):

  https://github.com/magit/magit/commit/20ebb99a1dda085dfde99bf26d4d8a52fba51bcf

Finally the campaign code was removed 2 weeks later:

  https://github.com/magit/magit/commit/4a9d9e59806735100b5d20a8be32defefb659a33

[my-magit.scm (text/x-scheme, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Fri, 16 Feb 2018 19:02:01 GMT) Full text and rfc822 format available.

Message #37 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Alex Kost <alezost <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Fri, 16 Feb 2018 14:00:50 -0500
Hi Alex,

Alex Kost <alezost <at> gmail.com> writes:

> Mark H Weaver (2018-02-16 04:09 -0500) wrote:
>
>> How does your own magit package avoid requiring git as an input?  I'd be
>> curious to see the diff between your package definition and ours.
>
> My version of magit is attached.  Actually this problem (requiring git
> during compilation) was introduced occasionally in Magit 2.11.0 and was
> fixed soon after that, so "git" input will not be needed in the next
> release.
>
> If you want more details, tarsius (the maintainer of Magit) added some
> code to bring attention for his fundraising campaign:
>
>   https://github.com/magit/magit/commit/bf71241122e1a0bf707913c87493214ceb12f588

Thanks for interesting details, and for your modified 'magit' package
recipe.  Having looked it over, I'm inclined to leave our 'magit'
package as it is now.  It's a very quick build, and also a leaf package
(except for 'magit-svn'), so I don't see much practical benefit to
removing 'git' as an input.

Other opinions welcome :)

       Mark




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 17 Mar 2018 11:24:05 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Maxime Devos <maximedevos <at> telenet.be> to control <at> debbugs.gnu.org. (Wed, 18 May 2022 13:37:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 May 2022 13:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Wed, 13 Jul 2022 12:54:02 GMT) Full text and rfc822 format available.

Message #46 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 30434 <at> debbugs.gnu.org, control <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Wed, 13 Jul 2022 08:53:33 -0400
Hi Maxime,

Maxime Devos <maximedevos <at> telenet.be> writes:

> unarchive 30434
> reopen 30434
> thanks

Why did you reopen that issue?  Does the original problem still affect
you (a hard-coded magit-git-executable causing problems when executed on
remote machines via TRAMP).

Thanks,

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Wed, 20 Jul 2022 15:43:02 GMT) Full text and rfc822 format available.

Message #49 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org, control <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Wed, 20 Jul 2022 17:42:51 +0200
[Message part 1 (text/plain, inline)]
On 13-07-2022 14:53, Maxim Cournoyer wrote:
> Hi Maxime,
>
> Maxime Devos <maximedevos <at> telenet.be> writes:
>
>> unarchive 30434
>> reopen 30434
>> thanks
> Why did you reopen that issue?  Does the original problem still affect
> you (a hard-coded magit-git-executable causing problems when executed on
> remote machines via TRAMP).
>
> Thanks,
>
> Maxim

Looks like my original reply didn't come through because the archival, 
so I sent an unarchive+reopen but forgot to send the actual message 
again ... here it is:

> Nowadays 'magit' has a separate magit-git-executable:
>
>    "The Git executable used by Magit on the local host.
> On remote machines `magit-remote-git-executable' is used instead."
>
> and magit-remote-git-executable:
>
> (defcustom magit-remote-git-executable "git"
>    "The Git executable used by Magit on remote machines.
> On the local host `magit-git-executable' is used instead.
> Consider customizing `tramp-remote-path' instead of this
> option."
>
> so maybe this patch can now be reversed, such that emacs-magit
> can be used without depending on the (possibly non-existent) 'git' in
> $PATH?  Needs to be verified though.

More concretely, try "guix shell emacs emacs-magit --pure -- emacs" 
followed by "M-x magit-status" in a Git checkout, it will fail due to 
not finding the 'git' executable.

So my idea is to use the new magit changes to both make the remote TRAMP 
work and _also_ make local things work in a pure environment, undoing 
the regression that was caused by reverting the 
git->/gnu/store/.../bin/git substitution without creating new regressions.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Thu, 21 Jul 2022 04:05:01 GMT) Full text and rfc822 format available.

Message #52 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Thu, 21 Jul 2022 00:04:06 -0400
Hi Maxime,

Maxime Devos <maximedevos <at> telenet.be> writes:


[...]

>> Nowadays 'magit' has a separate magit-git-executable:
>>
>>    "The Git executable used by Magit on the local host.
>> On remote machines `magit-remote-git-executable' is used instead."
>>
>> and magit-remote-git-executable:
>>
>> (defcustom magit-remote-git-executable "git"
>>    "The Git executable used by Magit on remote machines.
>> On the local host `magit-git-executable' is used instead.
>> Consider customizing `tramp-remote-path' instead of this
>> option."
>>
>> so maybe this patch can now be reversed, such that emacs-magit
>> can be used without depending on the (possibly non-existent) 'git' in
>> $PATH?  Needs to be verified though.
>
> More concretely, try "guix shell emacs emacs-magit --pure -- emacs"
> followed by "M-x magit-status" in a Git checkout, it will fail due to
> not finding the 'git' executable.
>
> So my idea is to use the new magit changes to both make the remote
> TRAMP work and _also_ make local things work in a pure environment,
> undoing the regression that was caused by reverting the
> git->/gnu/store/.../bin/git substitution without creating new
> regressions.

Sounds good to me!  I'll be happy to review any patch implementing it.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Thu, 21 Sep 2023 08:10:02 GMT) Full text and rfc822 format available.

Message #55 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org, Maxime Devos <maximedevos <at> telenet.be>
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Thu, 21 Sep 2023 09:34:18 +0200
Hi,

This bug#30434 [1] had been closed on 14 Feb 2018 and then reopened on
18 May 2022.

1: https://issues.guix.gnu.org/issue/30434

On Thu, 21 Jul 2022 at 00:04, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:

>> More concretely, try "guix shell emacs emacs-magit --pure -- emacs"
>> followed by "M-x magit-status" in a Git checkout, it will fail due to
>> not finding the 'git' executable.
>>
>> So my idea is to use the new magit changes to both make the remote
>> TRAMP work and _also_ make local things work in a pure environment,
>> undoing the regression that was caused by reverting the
>> git->/gnu/store/.../bin/git substitution without creating new
>> regressions.
>
> Sounds good to me!  I'll be happy to review any patch implementing it.

Now, we are 1 year, 17 weeks, 6 later after this message.  So I propose
to close this issue and then open another one for this potential patch.

WDYT?

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Sat, 23 Sep 2023 10:18:02 GMT) Full text and rfc822 format available.

Message #58 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Simon Tournier <zimon.toutoune <at> gmail.com>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Sat, 23 Sep 2023 12:17:35 +0200
[Message part 1 (text/plain, inline)]
Op 21-09-2023 om 09:34 schreef Simon Tournier:
> Hi,
> 
> This bug#30434 [1] had been closed on 14 Feb 2018 and then reopened on
> 18 May 2022.
> 
> 1: https://issues.guix.gnu.org/issue/30434
> 
> On Thu, 21 Jul 2022 at 00:04, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> 
>>> More concretely, try "guix shell emacs emacs-magit --pure -- emacs"
>>> followed by "M-x magit-status" in a Git checkout, it will fail due to
>>> not finding the 'git' executable.
>>>
>>> So my idea is to use the new magit changes to both make the remote
>>> TRAMP work and _also_ make local things work in a pure environment,
>>> undoing the regression that was caused by reverting the
>>> git->/gnu/store/.../bin/git substitution without creating new
>>> regressions.
>>
>> Sounds good to me!  I'll be happy to review any patch implementing it.
> 
> Now, we are 1 year, 17 weeks, 6 later after this message.  So I propose
> to close this issue and then open another one for this potential patch.
> 
> WDYT?

The time since that message  is irrelevant.  The bug is still there, so 
there is no good reason to close it.  If the point of closing unresolved 
bug reports is some kind of prioritization of bug reports, there's tags, 
severity levels, etc., you can use instead faking a high bug resolving 
statistics.

Best regards,
Maxime Devos.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Sat, 23 Sep 2023 10:21:01 GMT) Full text and rfc822 format available.

Message #61 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Simon Tournier <zimon.toutoune <at> gmail.com>, 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Sat, 23 Sep 2023 12:19:40 +0200
[Message part 1 (text/plain, inline)]

Op 23-09-2023 om 12:17 schreef Maxime Devos:
> Op 21-09-2023 om 09:34 schreef Simon Tournier:
>> Hi,
>>
>> This bug#30434 [1] had been closed on 14 Feb 2018 and then reopened on
>> 18 May 2022.
>>
>> 1: https://issues.guix.gnu.org/issue/30434
>>
>> On Thu, 21 Jul 2022 at 00:04, Maxim Cournoyer 
>> <maxim.cournoyer <at> gmail.com> wrote:
>>
>>>> More concretely, try "guix shell emacs emacs-magit --pure -- emacs"
>>>> followed by "M-x magit-status" in a Git checkout, it will fail due to
>>>> not finding the 'git' executable.
>>>>
>>>> So my idea is to use the new magit changes to both make the remote
>>>> TRAMP work and _also_ make local things work in a pure environment,
>>>> undoing the regression that was caused by reverting the
>>>> git->/gnu/store/.../bin/git substitution without creating new
>>>> regressions.
>>>
>>> Sounds good to me!  I'll be happy to review any patch implementing it.
>>
>> Now, we are 1 year, 17 weeks, 6 later after this message.  So I propose
>> to close this issue and then open another one for this potential patch.
>>
>> WDYT?
> 
> The time since that message  is irrelevant.  The bug is still there, so 
> there is no good reason to close it.  If the point of closing unresolved 
> bug reports is some kind of prioritization of bug reports, there's tags, 
> severity levels, etc., you can use instead faking a high bug resolving 
> statistics.

Wait, I misread -- feel free to open that new bug report.  I assumed 
‘open another one when that potential patch exists’ instead of ‘right now’.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#30434; Package guix. (Sat, 23 Sep 2023 11:48:02 GMT) Full text and rfc822 format available.

Message #64 received at 30434 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>, Maxim Cournoyer
 <maxim.cournoyer <at> gmail.com>
Cc: 30434 <at> debbugs.gnu.org
Subject: Re: bug#30434: magit won’t work over TRAMP
Date: Sat, 23 Sep 2023 13:47:14 +0200
Hi,

On Sat, 23 Sep 2023 at 12:17, Maxime Devos <maximedevos <at> telenet.be> wrote:

>>>> More concretely, try "guix shell emacs emacs-magit --pure -- emacs"
>>>> followed by "M-x magit-status" in a Git checkout, it will fail due to
>>>> not finding the 'git' executable.

For one, this had been corrected by
b59b033af3957e0de9a44733e26cbcc7114a4dfb, IMHO.  For me,

    guix shell emacs emacs-magit --pure -- emacs -q -f magit-status

just works.


>>>> So my idea is to use the new magit changes to both make the remote
>>>> TRAMP work and _also_ make local things work in a pure environment,
>>>> undoing the regression that was caused by reverting the
>>>> git->/gnu/store/.../bin/git substitution without creating new
>>>> regressions.

For two, as explained by [1], the case for TRAMP seems handled, no?


>>> Sounds good to me!  I'll be happy to review any patch implementing it.
>> 
>> Now, we are 1 year, 17 weeks, 6 later after this message.  So I propose
>> to close this issue and then open another one for this potential patch.
>> 
>> WDYT?
>
> The time since that message  is irrelevant.  The bug is still there, so 
> there is no good reason to close it.

Your report (reopened a closed one) is about two issues.  Which one is
still there?  One?  Both?  None?  Having a clear fresh bug report for
specific issue makes easier to deal with instead of a lot old thread
mixing several issues where some had been already fixed.  Somehow, it
makes it hard to know what is currently still accurate and what is not,
IMHO.

>                                       If the point of closing unresolved 
> bug reports is some kind of prioritization of bug reports, there's tags, 
> severity levels, etc., you can use instead faking a high bug resolving 
> statistics.

The point is to have an actionable bug tracker and not some spaghetti
thread where it is hard to follow between the still accurate and the
already fixed.

Ricardo opened an issue tracked as #30434.

    Subject: bug#30434: magit won’t work over TRAMP
    Date: Mon, 12 Feb 2018 13:53:22 +0100 (5 years, 31 weeks, 5 days ago)

Closed by Mark with the message:

    Agreed.  Done, in commit 5fe9ba59ba1cea12a70d011aacbace52e3bfda18 on
    master and commit 317e8e9404058af35d9843e076934560f95d895a on
    core-updates.  I'm closing this bug now.

    Date: Wed, 14 Feb 2018 08:52:02 +0000 (5 years, 31 weeks, 3 days ago)

And the discussion ends on:

    Date: Fri, 16 Feb 2018 14:00:50 -0500 (5 years, 31 weeks, 1 day ago)

Then, years later you unarchive and reopen.

    Date: Wed, 18 May 2022 15:36:02 +0200 (1 year, 18 weeks, 1 day ago)

    unarchive 30434
    reopen 30434

directly followed by Maxim’s question:

    Why did you reopen that issue?  Does the original problem still affect
    you (a hard-coded magit-git-executable causing problems when executed on
    remote machines via TRAMP).

And this bug was still open just as a reminder waiting for your patch.
The initial issue had been closed and what you are reporting is not an
issue anymore, from my understanding.  I am proposing to open a fresh
issue with accurate information from current Guix revisions about what
you consider is this bug – referencing to this one if needed.

BTW, for what it is worth, I feel your tone arrogant and that is
generating an atmosphere that does not make the collaboration friendly.

Cheers,
simon

1: [bug#59253] [PATCH] gnu: emacs-magit: Substitute git executable path.
Kyle Meyer <kyle <at> kyleam.com>
Mon, 14 Nov 2022 19:52:36 -0500
id:87cz9pvy23.fsf <at> kyleam.com
https://issues.guix.gnu.org//59253
https://issues.guix.gnu.org/msgid/87cz9pvy23.fsf <at> kyleam.com
https://yhetil.org/guix/87cz9pvy23.fsf <at> kyleam.com




This bug report was last modified 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.