Skip to content

[1.5] tests/rootless.sh: use command -v instead of which - #5283

Merged
lifubang merged 1 commit into
opencontainers:release-1.5from
kolyshkin:1.5-5279
May 14, 2026
Merged

lifubang merged 1 commit into
opencontainers:release-1.5from
kolyshkin:1.5-5279

Conversation

@kolyshkin

Copy link
Copy Markdown
Contributor

backport of #5279


Apparently, lima's experimental/fedora-rawhide image does not include which rpm, and we don't really want to bother installing it.

Replace "which" with "command -v". Looks like this was the only place; we already use "command -v" everywhere else.

This should fix lima (experimental/fedora-rawhide) CI.

(cherry picked from commit 5e78f4a)

Apparently, lima's experimental/fedora-rawhide image does not include
which rpm, and we don't really want to bother installing it.

Replace "which" with "command -v". Looks like this was the only place;
we already use "command -v" everywhere else.

This should fix lima (experimental/fedora-rawhide) CI.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 5e78f4a)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added area/ci backport/1.5-pr A backport PR to release-1.5 labels May 13, 2026
@kolyshkin kolyshkin added this to the 1.5.0 milestone May 13, 2026

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lifubang

Copy link
Copy Markdown
Member

This should fix lima (experimental/fedora-rawhide) CI.

We didn't backport experimental/fedora-rawhide to release-1.5.

@kolyshkin

Copy link
Copy Markdown
Contributor Author

This should fix lima (experimental/fedora-rawhide) CI.

We didn't backport experimental/fedora-rawhide to release-1.5.

Doesn't hurt to have it here either, we are going to maintain 1.5 for a while.

@lifubang

Copy link
Copy Markdown
Member

Doesn't hurt to have it here either, we are going to maintain 1.5 for a while.

Agreed, having it here won't cause any issues.

@lifubang
lifubang merged commit 5e4d064 into opencontainers:release-1.5 May 14, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.5-pr A backport PR to release-1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants