* [bug#47069] [PATCH] etc: Run pre-push make in guix environment.
@ 2021-03-11 14:42 Tobias Geerinckx-Rice via Guix-patches via
2021-03-26 8:20 ` zimoun
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-03-11 14:42 UTC (permalink / raw)
To: 47069
* etc/git/pre-push: Exec make in a guix development environment.
---
Guix,
The pre-push assumes you have make installed, which I didn't.
Now it assumes that Guix developers have a vaguely up-to-date guix
command, which seems reasonable.
Kind regards,
T G-R
etc/git/pre-push | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/git/pre-push b/etc/git/pre-push
index 59671b0d58..372c7dece0 100755
--- a/etc/git/pre-push
+++ b/etc/git/pre-push
@@ -32,7 +32,7 @@ do
# Only use the hook when pushing to Savannah.
case "$2" in
*.gnu.org*)
- exec make authenticate check-channel-news
+ exec guix environment guix -- make authenticate check-channel-news
exit 127
;;
*)
--
2.30.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#47069] [PATCH] etc: Run pre-push make in guix environment.
2021-03-11 14:42 [bug#47069] [PATCH] etc: Run pre-push make in guix environment Tobias Geerinckx-Rice via Guix-patches via
@ 2021-03-26 8:20 ` zimoun
2021-03-26 10:11 ` Leo Prikler
0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2021-03-26 8:20 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 47069
Hi Tobias,
On Thu, 11 Mar 2021 at 15:42, Tobias Geerinckx-Rice <me@tobias.gr> wrote:
> * etc/git/pre-push: Exec make in a guix development environment.
> ---
> The pre-push assumes you have make installed, which I didn't.
How do you rebuild Guix before pushing?
Cheers,
simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#47069] [PATCH] etc: Run pre-push make in guix environment.
2021-03-26 8:20 ` zimoun
@ 2021-03-26 10:11 ` Leo Prikler
0 siblings, 0 replies; 3+ messages in thread
From: Leo Prikler @ 2021-03-26 10:11 UTC (permalink / raw)
To: zimoun, Tobias Geerinckx-Rice; +Cc: 47069
Am Freitag, den 26.03.2021, 09:20 +0100 schrieb zimoun:
> Hi Tobias,
>
> On Thu, 11 Mar 2021 at 15:42, Tobias Geerinckx-Rice <me@tobias.gr>
> wrote:
> > * etc/git/pre-push: Exec make in a guix development environment.
> > ---
> > The pre-push assumes you have make installed, which I didn't.
>
> How do you rebuild Guix before pushing?
If that's a problem for the script, you could add an explicit 'all'
target.
That said, I think, that many developers (myself included), who would
suffer from the problem mentioned by Tobias already run 'git push'
inside a guix environment. I know I do.
@Tobias: would it make sense to detect that case (via GUIX_ENVIRONMENT)
and only optionally construct the guix environment?
Regards,
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-26 10:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11 14:42 [bug#47069] [PATCH] etc: Run pre-push make in guix environment Tobias Geerinckx-Rice via Guix-patches via
2021-03-26 8:20 ` zimoun
2021-03-26 10:11 ` Leo Prikler
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).