From dc8076a1d45f2da921c665107deb51e6e04eedc5 Mon Sep 17 00:00:00 2001 From: Des Hartman Date: Thu, 22 Jan 2026 15:07:16 +1100 Subject: [PATCH] fix: Map 'stable' update channel to 'latest' to resolve HTTP 403 The oclif framework defaults to 'stable' channel, which expects manifest files at the S3 bucket root. However, the actual manifest files are published under channel subdirectories (channels/latest/, channels/rc/, etc.). This change overrides the S3 templates to map 'stable' -> 'latest', resolving the HTTP 403 error when running 'twilio update'. Fixes: HTTP 403: Invalid channel stable error Co-Authored-By: Claude --- package-lock.json | 12 ++++++------ package.json | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9b2dc50b..613a7fb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "twilio-cli", - "version": "6.2.2", + "version": "6.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "twilio-cli", - "version": "6.2.2", + "version": "6.2.3", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -18,7 +18,7 @@ "@oclif/plugin-version": "^1.1.1", "@oclif/plugin-warn-if-update-available": "^3.0.18", "@sendgrid/mail": "^8.1.4", - "@twilio/cli-core": "8.2.5", + "@twilio/cli-core": "8.3.1", "chalk": "^4.1.2", "file-type": "^16.5.4", "hyperlinker": "1.0.0", @@ -5870,9 +5870,9 @@ "license": "MIT" }, "node_modules/@twilio/cli-core": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/@twilio/cli-core/-/cli-core-8.2.5.tgz", - "integrity": "sha512-jt2yyRHbwEC01BdtpJncQ//Qe2iBYe+sKFvq2LB+ywyhEhOVXLiQhssJAtkFWq6Tfrod0+R3znUeByJ1g0D2Kg==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@twilio/cli-core/-/cli-core-8.3.1.tgz", + "integrity": "sha512-Lydw2ZlpMDk7/zsmUwoxQIW0yK8MWlPt/2DRn3HdYkjj8yoFpuUUBTdOWmRiQe7gwvSS6Q2hylHWeuiJs/8CDg==", "license": "MIT", "dependencies": { "@actions/core": "^1.0.0", diff --git a/package.json b/package.json index eba8f231..0d513e92 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,21 @@ "update": { "s3": { "xz": true, - "bucket": "twilio-cli-prod" + "bucket": "twilio-cli-prod", + "templates": { + "target": { + "baseDir": "<%- bin %>", + "unversioned": "channels/<%- channel === 'stable' ? 'latest' : channel %>/<%- bin %>-<%- platform %>-<%- arch %><%- ext %>", + "versioned": "channels/<%- channel === 'stable' ? 'latest' : channel %>/<%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>", + "manifest": "channels/<%- channel === 'stable' ? 'latest' : channel %>/<%- platform %>-<%- arch %>" + }, + "vanilla": { + "unversioned": "channels/<%- channel === 'stable' ? 'latest' : channel %>/<%- bin %><%- ext %>", + "versioned": "channels/<%- channel === 'stable' ? 'latest' : channel %>/<%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>", + "baseDir": "<%- bin %>", + "manifest": "channels/<%- channel === 'stable' ? 'latest' : channel %>/version" + } + } } }, "helpClass": "./src/services/twilio-help/custom-help"