Skip to content

Escape every plus in the download URL - #1027

Open
bardrop wants to merge 1 commit into
mapbox:masterfrom
bardrop-oss:escape-every-plus
Open

bardrop wants to merge 1 commit into
mapbox:masterfrom
bardrop-oss:escape-every-plus

Conversation

@bardrop

@bardrop bardrop commented Nov 24, 2026

Copy link
Copy Markdown

place_binary escapes the + in the download URL, but only the first one. With the build metadata in both parts, such as

"remote_path": "./{version}+{build}",
"package_name": "{module_name}-{version}+{build}.tar.gz"

it requests /0.1.0%2Bbuild.1/app1-0.1.0+build.1.tar.gz. S3 reads the second + as a space, so the binary is not found.

All of them are escaped now. The new test in fetch.test.js fails without the change.

@bardrop
bardrop requested a review from a team as a code owner November 24, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant