]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Revert "Do not use underscore in image names"
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 11 Feb 2024 07:47:14 +0000 (08:47 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 11 Feb 2024 08:03:27 +0000 (09:03 +0100)
This reverts commit 2fd8cda4316ebd80f25d2d54c9fd818c96b91060.

This breaks assumptions about DDI naming so let's revert this change.

Specifiers can be used instead to override the output naming.

mkosi/config.py
tests/test_config.py

index 17fc77908369c8b333fd714108266c992563511f..4f9ed5dbb30884f9f91db76700d816924a528fe0 100644 (file)
@@ -588,7 +588,7 @@ def config_default_output(namespace: argparse.Namespace) -> str:
     output = namespace.image_id or namespace.image or "image"
 
     if namespace.image_version:
-        output += f"-{namespace.image_version}"
+        output += f"_{namespace.image_version}"
 
     return output
 
index 230dfd1982b984c954a57d9451596f6c50e90edd..a06c0e37f21a51ede24c859aa2ca3aafd6c6acd4 100644 (file)
@@ -896,7 +896,7 @@ def test_output_id_version(tmp_path: Path) -> None:
     with chdir(d):
         _, [config] = parse_config()
 
-    assert config.output == "output-1.2.3"
+    assert config.output == "output_1.2.3"
 
 
 def test_deterministic() -> None: