-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't sync starship (multiple name matches found) #116
Comments
Indeed, that's a problem. Currently, there's no way in The quick fix by @MitchellBerend in #117 solves this particular problem. But it's a bit ad-hoc. Someone down the road stores checksum with We can merge the quick fix to support a popular Rust tool. I would like to include the implementation of the following issue in the next release: Once it's done, I expect users to never need to specify custom rules for matching asset names. I have a design sketch in my mind but I didn't have time to write it explicitly yet 😞 Alternatively, we could support regexes in matching logic. So this would look like just: asset_name.windows = "starship-x86_64-pc-windows-msvc.zip$" It's an extra dependency and we probably will need to support regexes at some point. Not sure yet though 🤔 |
Oh I totally forgot |
can we start with wildmatch ? |
Unless I'm reading the docs wrong this doesn't solve the problem of having an extra suffix. Another option is to treat the asset_name as the suffix that needs to be matched but that would exclude the option of having the asset name match on any substring. |
Is the Edit: Im not sure how the |
It's required. This option is used to find the executable inside the asset archive. It's currently not used in the matching phase.
Indeed, portable file paths is a problem I've encountered before. But it looks like not a problem?.. At least, I'm using the same config and |
Thinking about this more another option came to mind. We can also implementing out own line terminator that way we can use the |
@MitchellBerend This feels like reinventing the wheel. Maybe we need the ability to match the asset name exactly, without any substring searches. And then people can use it when the logic for guessing an asset name is not enough. Asset names cannot change within a single version, so people can update their configurations if they change in future names. |
It definitely is. Maybe a config option to enable/disable the name guessing functionality per tool is a good approach? I would have it enabled by default where the user can choose this for specific tools that pose problems. |
My point is that maybe giving too much flexibility and choice for the user will make the tool more difficult to use. My guess is that the following will be enough:
|
sccache has an extra pattern to disambiguate for x86_64 musl, eg https://github.com/mozilla/sccache/releases/tag/v0.3.0
where the version is embedded in the middle, and a companion asset has a different name
|
https://github.com/starship/starship/releases
The text was updated successfully, but these errors were encountered: