From: Patrick Steinhardt <ps@pks.im>
To: Harald Nordgren <haraldnordgren@gmail.com>
Cc: Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH v2] ci: fail the build if perforce, git-lfs, or JGit fail to install
Date: Mon, 26 Oct 2026 09:07:02 +0100 [thread overview]
Message-ID: <at8KJi0eMEpN1NoO@pks.im> (raw)
In-Reply-To: <CAHwyqnVGpc5ro+TksGGv4sp_JT-_ntuQjuXfVPSaeW+BYu2Pbw@mail.gmail.com>
On Mon, Oct 26, 2026 at 09:41:45AM +0200, Harald Nordgren wrote:
> > > > wget --quiet \
> > > > "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" &&
> > > > tar -xzf "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" \
> > > > -C "$CUSTOM_PATH" --strip-components=1 \
> > > > "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs" &&
> > > > - rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" ||
> > > > - rm -f "$CUSTOM_PATH/git-lfs"
> > > > + rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" || {
> > > > + echo >&2 "error: could not install git-lfs"
> > > > + exit 1
> > > > + }
> > >
> > > This could all be a bit less convoluted if we had `set -e` in
> > > "ci/lib.sh". But that certainly is outside the scope of this patch
> > > series, so meanwhile this looks good to me.
> >
> > Yeah, `set -e` is a gem of a command. Would be good to do later!
>
> But wait, we already have it in "ci/lib.sh"!
Oh, I missed that!
The question then becomes whether the error message is worth it. In case
we see traces (`set -x`) I think it's somewhat pointless as you'd
trivially see the last failing command anyway, so you'd know why it has
failed.
Anyway, this is all a bit of a tangent, I don't think there's a strong
reason that this really must change.
Patrick
next prev parent reply other threads:[~2026-10-26 8:07 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 14:38 [PATCH] ci: only warn about perforce/git-lfs/JGit on platforms that need them Harald Nordgren via GitGitGadget
2026-09-25 19:02 ` Junio C Hamano
2026-09-28 12:31 ` Patrick Steinhardt
2026-09-28 16:13 ` Harald Nordgren
2026-10-23 16:50 ` [PATCH v2] ci: fail the build if perforce, git-lfs, or JGit fail to install Harald Nordgren via GitGitGadget
2026-10-23 21:48 ` Junio C Hamano
2026-10-23 22:59 ` Harald Nordgren
2026-10-23 23:06 ` Junio C Hamano
2026-10-26 7:13 ` Patrick Steinhardt
2026-10-26 7:38 ` Harald Nordgren
2026-10-26 7:41 ` Harald Nordgren
2026-10-26 8:07 ` Patrick Steinhardt [this message]
2026-10-26 8:08 ` Harald Nordgren
2026-10-26 8:06 ` Patrick Steinhardt
2026-10-26 8:13 ` Harald Nordgren
2026-10-26 8:58 ` Patrick Steinhardt
2026-10-26 9:54 ` [PATCH v3 0/2] ci: fail the build if perforce, git-lfs " Harald Nordgren via GitGitGadget
2026-10-26 9:54 ` [PATCH v3 1/2] ci: drop quarantine removal for macos perforce binaries Harald Nordgren via GitGitGadget
2026-10-26 11:08 ` Patrick Steinhardt
2026-10-26 12:18 ` Harald Nordgren
2026-10-26 12:49 ` Harald Nordgren
2026-10-26 16:54 ` Junio C Hamano
2026-10-26 9:54 ` [PATCH v3 2/2] ci: fail the build if perforce, git-lfs, or JGit fail to install Harald Nordgren via GitGitGadget
2026-10-26 11:08 ` Patrick Steinhardt
2026-10-26 12:17 ` Harald Nordgren
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=at8KJi0eMEpN1NoO@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=haraldnordgren@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox