mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
refactor(images): drop the pkgmgr image reference nothing builds any more
962c3d550d made the images build FROM the distribution base, which left the pkgmgr reference in the distro matrix without a producer: utils.distros still rendered it, the image-ref CLI still offered it as a kind, and no caller asked for either.
The requirements-archive target goes with them as the last build-path use of pkgmgr; its alias follows. The pkgmgr-install role is a different thing, installs tools on the target host, and stays where the deprecation lint can keep pointing at pip.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
0d2fadce0c
commit
efaed0dbb9
7 files changed
+4
-35
No files matched your search
@@ -13,7 +13,6 @@ from utils.distros import (
|
||||
distro_of_dev_runtime_image,
|
||||
environment_image,
|
||||
galaxy_platforms,
|
||||
pkgmgr_image,
|
||||
)
|
||||
|
||||
|
||||
@@ -50,12 +49,6 @@ class TestDistroSpot(unittest.TestCase):
|
||||
first[0]["versions"].append("mutated")
|
||||
self.assertEqual(galaxy_platforms()[0]["versions"], ["all"])
|
||||
|
||||
def test_pkgmgr_image_renders_the_template(self) -> None:
|
||||
self.assertEqual(
|
||||
pkgmgr_image("arch", owner="acme", tag="stable"),
|
||||
"ghcr.io/acme/pkgmgr-arch:stable",
|
||||
)
|
||||
|
||||
def test_environment_image_renders_the_template(self) -> None:
|
||||
self.assertEqual(
|
||||
environment_image("centos", owner="acme", repository="nexus", tag="ci-1"),
|
||||
@@ -64,7 +57,7 @@ class TestDistroSpot(unittest.TestCase):
|
||||
|
||||
def test_unknown_distro_is_rejected(self) -> None:
|
||||
with self.assertRaises(UnknownDistroError):
|
||||
pkgmgr_image("gentoo", owner="acme", tag="stable")
|
||||
environment_image("gentoo", owner="acme", repository="nexus", tag="stable")
|
||||
|
||||
def test_dev_runtime_image_round_trips_to_its_distro(self) -> None:
|
||||
for name in distro_names():
|
||||
|
||||
Reference in new issue
Block a user