From bb61225de8399487492efdf2cf9aaa297f04ee91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 20 Feb 2025 13:55:47 +0100 Subject: [PATCH 1/4] add a disable_version_manifest accessor --- lib/omnibus/project.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/omnibus/project.rb b/lib/omnibus/project.rb index 7dd22b34f..8b0e30c22 100644 --- a/lib/omnibus/project.rb +++ b/lib/omnibus/project.rb @@ -1626,6 +1626,17 @@ def skip_healthcheck(val) end end expose :skip_healthcheck + + def disable_version_manifest(val) + if val.nil? + @disable_version_manifest + else + @disable_version_manifest = val + end + end + expose disable_version_manifest + + # # @!endgroup # -------------------------------------------------- From 7dc06ce355f562df97f50c0f779c5ede329b16b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 20 Feb 2025 13:56:52 +0100 Subject: [PATCH 2/4] allow version manifests to be disabled --- lib/omnibus/project.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/omnibus/project.rb b/lib/omnibus/project.rb index 8b0e30c22..a3b0dd6ae 100644 --- a/lib/omnibus/project.rb +++ b/lib/omnibus/project.rb @@ -1443,8 +1443,10 @@ def build # Install shipped sources in the sources/ folder install_sources - write_json_manifest - write_text_manifest + unless @disable_version_manifest + write_json_manifest + write_text_manifest + end unless @skip_healthcheck HealthCheck.run!(self) end From f640cd5e3a75ff7e64d2c45c50f252fb77444d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 20 Feb 2025 14:09:17 +0100 Subject: [PATCH 3/4] remove an extra blank line to keep rubocop happy --- lib/omnibus/project.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/omnibus/project.rb b/lib/omnibus/project.rb index a3b0dd6ae..a6e8ee4c1 100644 --- a/lib/omnibus/project.rb +++ b/lib/omnibus/project.rb @@ -1638,7 +1638,6 @@ def disable_version_manifest(val) end expose disable_version_manifest - # # @!endgroup # -------------------------------------------------- From a728c07ba21114bb572e526f0e1ae1a45b510408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Thu, 20 Feb 2025 14:20:43 +0100 Subject: [PATCH 4/4] fix syntax --- lib/omnibus/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/omnibus/project.rb b/lib/omnibus/project.rb index a6e8ee4c1..577b6802b 100644 --- a/lib/omnibus/project.rb +++ b/lib/omnibus/project.rb @@ -1636,7 +1636,7 @@ def disable_version_manifest(val) @disable_version_manifest = val end end - expose disable_version_manifest + expose :disable_version_manifest # # @!endgroup