Skip to content

Commit ec10ef7

Browse files
committed
Configurations without nested hashes
With the addition of the `config/java_opts.yml` the offline package build was broken. The root cause is that when the packager detects a configuration without `version` and `repository_root` it then attempts to inspect the values of the configuration as if they were nested hashes (like the `config/tomcat.yml` file). The addition of the `java_opts` configurations was the first time we've had a configuration that didn't meet the typical conventions and the packaging build broke. This change inspects the values of a non-repository-configuration and only inspects the values if they are also hashes. [#69170446]
1 parent 56662e7 commit ec10ef7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rakelib/dependency_cache_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def configurations(configuration)
112112
if repository_configuration?(configuration)
113113
configurations << configuration
114114
else
115-
configurations << configuration.values.map { |v| configurations(v) }
115+
configuration.values.each { |v| configurations << configurations(v) if v.is_a? Hash }
116116
end
117117

118118
configurations

0 commit comments

Comments
 (0)