mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
feat(Variables): Disallow provider.variableSyntax with new resolver
This commit is contained in:
parent
a72b681635
commit
5a2da444ea
@ -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 ' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user