Skip to content

Commit 8b42f77

Browse files
committed
Missing Name Mappings Cause Failure
Previously, missing name mappings in the versions tasks would show up with UNKNOWN. This was easy to miss in the CI system, leading them to be unset when release time came around. This change ensures that missing name mappings cause a failure forcing it to be dealt with early.
1 parent dece7b3 commit 8b42f77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rakelib/versions_task.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,12 @@ def dependency_versions
179179
index_configuration(configuration).each do |index_configuration|
180180
version, uri = get_from_cache(cache, configuration, index_configuration)
181181

182+
name = NAME_MAPPINGS[id]
183+
raise "Unable to resolve name for '#{id}'" unless name
184+
182185
dependency_versions << {
183186
'id' => id,
184-
'name' => NAME_MAPPINGS[id] || "UNKNOWN (#{id})",
187+
'name' => name,
185188
'uri' => uri,
186189
'version' => version
187190
}

0 commit comments

Comments
 (0)