aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-04-30 10:58:07 +0200
committerGitHub Enterprise <[email protected]>2026-04-30 10:58:07 +0200
commit3878924f2b2767442cf8bbb68aaeec79c6ff0b34 (patch)
tree53f8da3ac7904d2e38bdd300081dc78fc9d6fb69
parentchangelog version bump (diff)
downloadarchived-zen-3878924f2b2767442cf8bbb68aaeec79c6ff0b34.tar.xz
archived-zen-3878924f2b2767442cf8bbb68aaeec79c6ff0b34.zip
download spec part name fix (#1021)
* don't set default build part name if download spec is given
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zen/cmds/builds_cmd.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b832850a2..cecb5d8a0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
##
+- Bugfix: `zen builds download` no longer injects the `default` build part when `--download-spec` is given; the spec drives part selection
## 5.8.9
- Feature: Hub hydration packs small files into raw CAS pack blobs to reduce request count for modules dominated by tiny metadata files
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp
index 22e292f9c..79cf9afdd 100644
--- a/src/zen/cmds/builds_cmd.cpp
+++ b/src/zen/cmds/builds_cmd.cpp
@@ -1645,7 +1645,7 @@ BuildsDownloadSubCmd::Run(const ZenCliOptions& /*GlobalOptions*/)
std::vector<Oid> BuildPartIds = ParseBuildPartIds(m_BuildPartIds, Opts);
std::vector<std::string> BuildPartNames = ParseBuildPartNames(m_BuildPartNames, Opts);
- if (BuildPartIds.empty() && BuildPartNames.empty())
+ if (BuildPartIds.empty() && BuildPartNames.empty() && m_DownloadSpecPath.empty())
{
BuildPartNames = {"default"};
}