fix: Map 'stable' update channel to 'latest' to resolve HTTP 403#676
Open
deshartman wants to merge 1 commit intotwilio:mainfrom
Open
fix: Map 'stable' update channel to 'latest' to resolve HTTP 403#676deshartman wants to merge 1 commit intotwilio:mainfrom
deshartman wants to merge 1 commit intotwilio:mainfrom
Conversation
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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
twilio updatewithout argumentsProblem
When running
twilio update, users encounter:Root Cause: The oclif framework defaults to the "stable" channel, which expects manifest files at the S3 bucket root (e.g.,
https://twilio-cli-prod.s3.amazonaws.com/twilio-darwin-arm64-buildmanifest). However, these files are either missing or inaccessible at that location.Solution
This PR adds S3 template overrides in
package.jsonto redirect "stable" channel requests to "latest" channel paths (underchannels/latest/in the S3 bucket). This approach:Changes
package.jsonoclif.update.s3.templates configurationTest Plan
twilio updateworks without 403 error after releasetwilio update --availableshows available versionstwilio update rc,twilio update draft🤖 Generated with Claude Code