You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/utils: Re-unify container & image name resolution
The idea of splitting ResolveContainerAndImageNames into two public
functions [1] didn't turn out to be so useful [2]. It pushed the
burden on the callers, who needed to carefully call the split
functions in the right order, because the container, distro, image and
release values are very tightly related. This opens the door for
mistakes.
A better approach would be to restore ResolveContainerAndImageNames as
the single public API. If necessary it could be internally split into
smaller private functions. It would keep things simple for the
callers.
Note that this commit doesn't include the private split. If necessary,
it can be done in future.
This reverts commit fd75608.
[1] Commit fd75608containers#828containers#838
[2] containers#977containers#937
0 commit comments