feat(Variables): Disallow provider.variableSyntax with new resolver

This commit is contained in:
Mariusz Nowak 2021-03-17 15:07:14 +01:00 committed by Mariusz Nowak
parent a72b681635
commit 5a2da444ea

View File

@ -95,6 +95,14 @@ const processSpanPromise = (async () => {
await (async () => {
if (_.get(configuration.provider, 'variableSyntax')) {
if (isHelpRequest) return;
if (configuration.variablesResolutionMode) {
throw new ServerlessError(
`Cannot resolve ${path.basename(
configurationPath
)}: "variableSyntax" is not supported with new variables resolver. ` +
'Please drop this setting'
);
}
logDeprecation(
'NEW_VARIABLES_RESOLVER',
'Serverless Framework was enhanced with a new variables resolver ' +