-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Detailed Specifications of Automatic Updates and Version Pinning #12866
Copy link
Copy link
Closed
Labels
Description
Issue description
Please tell me the detailed specifications of the automatic updates described in Update Serverless Framework and how to pin a version described in Serverless Framework version pinning.
Questions
- Please tell me all the timing and conditions under which automatic updates run.
- I think that automatic updates occur when you run a
serverless updateand every 24 hours (when you run any serverless commands after the updateLastChecked time recorded in~/.serverless/binaries/metadata.jsonhas passed), is that correct? And, are there any other times when automatic updates occur?
- I think that automatic updates occur when you run a
- What specifically happens if
SERVERLESS_FRAMEWORK_FORCE_UPDATE=trueis set? - What specifically happens if
SERVERLESS_FRAMEWORK_FORCE_UPDATE=falseis set? - Does the Serverless Framework's automatic update mechanism ignore the version specification in Node.js npm's package.json?
- Is there a way to stop automatic updates?
- I tried setting
SERVERLESS_FRAMEWORK_FORCE_UPDATE=falsein the environment variable, but the automatic update did not stop. If you want to fix the version used byserverless deploy, is it only possible to specifyframeworkVersioninserverless.ymlin the way written in Serverless Framework version pinning withframeworkVersioninserverless.yml?
- I tried setting
- When pinning the Serverless Framework version with
frameworkVersioninserverless.yml, is there any way to reference the value in an external file? (I'd like to write the version in one configuration file and reference it from serverless.yml for multiple CloudFormation stacks.) - What are the meanings of the following (1)~(3) parameters in meta.json created when deploying CloudFormation stacks with Serverless Framework?
- When deployed with the
frameworkVersion: '4.4.4'inserverless.ymlreferring to an external file, the Serverless Framework version value output to.serverless/meta.jsonappears to be different.
- When deployed with the
- serverless.yml
︙
frameworkVersion: ${file(. /config.yml):frameworkVersion}
︙- config.yml
︙
frameworkVersion: '4.4.4'
︙- .serverless/meta.json
{
"/path/to/serverless": {
"versionSfCore": null,
"versionFramework": "4.4.6", ... (1)
︙
"composeResolverProviders": {
"file": {
"instance": {
︙
"serviceConfigFile": {
︙
"frameworkVersion": "4.4.4", ... (2)
︙
"versionSf": "4.4.6", ... (3)Context
- Serverless Framework: 4.4.6 (the value of
frameworkVersioninserverless.ymlis '4.4.4')
Reactions are currently unavailable