Skip to content

fix: resolve relative URLs in process plugins and configs against the redirected URL#1114

Merged
dsherret merged 16 commits into
mainfrom
fix_cache_for_handling_redirected_urls
Mar 26, 2026
Merged

fix: resolve relative URLs in process plugins and configs against the redirected URL#1114
dsherret merged 16 commits into
mainfrom
fix_cache_for_handling_redirected_urls

Conversation

@dsherret

@dsherret dsherret commented Mar 26, 2026

Copy link
Copy Markdown
Member

This is super unfortunate, but the process plugin and config references weren't resolving relative URLs against the redirected URL.

@dsherret dsherret merged commit 6dc1b65 into main Mar 26, 2026
12 checks passed
@dsherret dsherret deleted the fix_cache_for_handling_redirected_urls branch March 26, 2026 12:59
azais-corentin added a commit to azais-corentin/dprint that referenced this pull request Apr 1, 2026
PR dprint#1114 changed plugin_kind() to check the resolved (post-redirect) URL
instead of the original source URL. GitHub Releases redirects .wasm URLs
to a CDN URL (release-assets.githubusercontent.com/...) that does not
end in .wasm, causing plugin_kind() to return None and reject the plugin.

Fix: pass both the original source (for type detection) and the resolved
source (for relative URL resolution in process plugins) to setup_plugin.

Fixes dprint#1120
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