We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f914ed7 commit fe48193Copy full SHA for fe48193
1 file changed
src/commands/PublishCommand.cpp
@@ -934,6 +934,17 @@ namespace vix::commands
934
return 1;
935
}
936
937
+ // Ensure versions exists and is an object
938
+ if (!entry.contains("versions") || !entry["versions"].is_object())
939
+ entry["versions"] = json::object();
940
+
941
+ // Always include the version being published so registry PR validates.
942
+ // This avoids relying on the index_from_tags workflow before merge.
943
+ entry["versions"][opt.version] = json::object({
944
+ {"tag", tag},
945
+ {"commit", commit},
946
+ });
947
948
if (opt.dryRun)
949
{
950
vix::cli::util::ok_line(std::cout, "dry-run: would update: " + entryPath.string());
0 commit comments