Skip to content

Conversation

@cgwalters
Copy link
Contributor

This variable is dead code as far as I can tell. I think it got cargo culted from something similar in skopeo, where it is used:
https://github.com/containers/skopeo/blob/85598438ce295fc9acdc27a1d5f97b7501f411a5/Makefile#L75 etc.

(Instead it looks like there's a PODMANCMD here)

But I'm effectively using this PR as a way to suggest aligning with what we're doing in bootc, where we have a core principle that Makefile should never itself spawn containers (or VMs etc). All the rules in Makefile are things that should work when e.g. building RPMs or debs or the like.

Those tasks are things that are done via Justfile: https://github.com/bootc-dev/bootc/blob/main/Justfile

So for example to align, we'd add a Justfile here and then make validatepr would move to just validatepr.

None

@cgwalters cgwalters changed the title Makefile: Drop dead CONTAINER_RUNTIME Makefile: Drop unused CONTAINER_RUNTIME Oct 31, 2025
@cgwalters
Copy link
Contributor Author

Also xref bootc-dev/bootc#1719

@afbjorklund
Copy link
Contributor

Seems to have been there since the beginning, to avoid the D-word and the swear jar: 9250747

@baude
Copy link
Member

baude commented Nov 3, 2025

hello @cgwalters mind rebasing and seeing you can pickup a recent merge from @Honny1 which should fix the wild card registry failures?

@mheon
Copy link
Member

mheon commented Nov 3, 2025

LGTM
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2025
This variable is dead code as far as I can tell. I think it
got cargo culted from something similar in skopeo, where it *is*
used:
https://github.com/containers/skopeo/blob/85598438ce295fc9acdc27a1d5f97b7501f411a5/Makefile#L75
etc.

(Instead it looks like there's a `PODMANCMD` here)

But I'm effectively using this PR as a way to suggest aligning
with what we're doing in bootc, where we have a core principle
that `Makefile` should *never* itself spawn containers (or VMs etc).
All the rules in Makefile are things that should work when e.g.
building RPMs or debs or the like.

Those tasks are things that are done via `Justfile`:
https://github.com/bootc-dev/bootc/blob/main/Justfile

So for example to align, we'd add a `Justfile` here and then
`make validatepr` would move to `just validatepr`.

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters force-pushed the drop-container-runtime branch from 5975c29 to ac888c7 Compare November 3, 2025 15:27
@cgwalters
Copy link
Contributor Author

hello @cgwalters mind rebasing and seeing you can pickup a recent merge from @Honny1 which should fix the wild card registry failures?

Sure done though this utterly trivial PR was more a vehicle to discuss synchronizing the development pattern more and I'm interested in comments on that

@mheon
Copy link
Member

mheon commented Nov 3, 2025

I really like some of our containerized tasks that run from the Makefile. vendor-in-container and validatepr guarantee that your vendor and/or lint jobs run the exact way they will in our CI - no version skew issues, your output is CI's output. These aren't things you're ever likely to do when building packages, but provide substantial utility to new contributors who want to figure out why exactly they're not able to pass CI. Adding additional complexity by moving them out of Makefile is, IMO, going to risk driving folks away - and it's already hard enough to contribute to Podman that that is a real problem.

@cgwalters
Copy link
Contributor Author

Of course, we 100% share the goal that it should be easy to contribute and easy to reproduce CI locally.

The first step here that would not break anything would be to add a Justfile that would just run those existing make tasks as is.

But new things that have side effects outside the build tree (per the principle) would go in Justfile, not Makefile for example.

@baude
Copy link
Member

baude commented Nov 3, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2025
@Luap99
Copy link
Member

Luap99 commented Nov 3, 2025

The first step here that would not break anything would be to add a Justfile that would just run those existing make tasks as is.

I have no interest in that personally. Adding two different "build" systems just seems way more confusing an requires unnecessary dependencies for devs who then need both and then also need to remember which target is in which file and duplicating them seems just a waste of effort.

@openshift-merge-bot openshift-merge-bot bot merged commit 020a597 into containers:main Nov 3, 2025
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants