mise icon indicating copy to clipboard operation
mise copied to clipboard

Tool download URL rewriting?

Open seanhagen opened this issue 5 months ago • 0 comments

I'm pretty sure this isn't possible, but I want to throw it out there.

I'm in the process of re-installing Linux on my laptop; and when running mise to re-install tools, several tools have changed their download paths since the plugin was written. For example, the protolint package expects the download URL for Linux to find the package for 64-bit systems with a value of 'x86_64' -- but apparently at some point the protolint repo changed to using 'amd64'. The problem is that the asdf-protolint plugin just uses the output of uname -m -- which is 'x86_64'.

I was wondering if it'd be possible for mise to shim curl/wget in a way that allows re-writing the URL used for downloading releases from GitHub/etc?

In my case, I'd just want to replace Linux_x86_64 with Linux_amd64 if the version for protolint is above 0.45.0.

I have already submitted a PR to the asdf-protolint repo, but just figured that a feature like this would help out folks who don't want to have to figure out how to update the bash scripts used by plugins 😅

seanhagen avatar Aug 28 '24 01:08 seanhagen