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
Problem:
* SAM CLI 1.78.0 includes a "smarter" `sync`, making the "code only"
experimental option redundant.
* Specifying the `watch` flag in `samconfig.toml` causes an unexpected UX.
Solution:
* Remove the "code only" experiment.
* Add `--no-watch` if applicable (for older SAM CLI).
* Add one-time notification to update SAM CLI for perf improvements.
* Only shows when running "Sync Serverless Application (formerly Deploy)".
* Create ECR repo if it doesn't exist.
"description": "\"Sync SAM Application\" will now always ignore the 'watch' flag in `samconfig.toml`. The Toolkit does not support running `sam sync` in 'watch' mode."
// '--no-watch' was not added until https://github.com/aws/aws-sam-cli/releases/tag/v1.77.0
413
+
// Forcing every user to upgrade will be a headache for what is otherwise a minor problem
414
+
if((parsedVersion?.compare('1.77.0')??-1)>=0){
415
+
boundArgs.push('--no-watch')
416
+
}
417
+
418
+
if((parsedVersion?.compare('1.78.0')??1)<0){
419
+
showOnce('sam.sync.updateMessage',async()=>{
420
+
constopenDocsItem='Open Upgrade Documentation'
421
+
constmessage=`Your current version of SAM CLI (${parsedVersion?.version}) does not include performance improvements for "sam sync". Update to 1.78.0 or higher for faster executions.`
0 commit comments