You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the config below, we want to make sure that app-test.component entry doesn't get merged with the app.component entry. To achieve this we use the reset-hack, resetting the app-test.component to a value of a different type and reassigning to the correct value:
test {
component {
type = test
properties {
url = test
}
}
}
app {
component {
type = app
properties {
host = prod
}
}
}
app-prod = ${app} {
component.value = app-prod
}
app-test = ${app} {
component = reset, component = ${test.component}
}
loading the above config results in:
om.typesafe.config.ConfigException$BugOrBroken: SimpleConfigObject.replaceChild did not find SimpleConfigObject({"component":"reset","component":${test.component}}) in SimpleConfigObject({"app":{"component":{"properties":{"host":"prod"},"type":"app"}},"app-prod":${app}{"component":{"value":"app-prod"}},"app-test":${app}{"component":"reset","component":${test.component}}})
The config loads fine if no substitution is performed on the app-test.component assignment after reset.
The text was updated successfully, but these errors were encountered:
Given the config below, we want to make sure that
app-test.component
entry doesn't get merged with theapp.component
entry. To achieve this we use the reset-hack, resetting theapp-test.component
to a value of a different type and reassigning to the correct value:loading the above config results in:
The config loads fine if no substitution is performed on the
app-test.component
assignment afterreset
.The text was updated successfully, but these errors were encountered: