tag_regex in ubi backend becomes ineffective after install #4257
Replies: 2 comments 1 reply
-
I think this is an XY problem. What is it you're ultimately trying to accomplish? It looks like you want to use cargo-bins to install things but I actually don't think mise will ever be able to use that effectively. The project has too many tags for mise to ever work well with it. |
Beta Was this translation helpful? Give feedback.
-
Let me clarify the actual issue I'm concerned about. According to the mise documentation about
I've noticed that this filtering mechanism appears to break in certain scenarios. Here's a concrete example with jib that demonstrates the issue:
% mise use 'ubi:GoogleContainerTools/jib[tag_regex=-cli,extract_all=true]@0.10.0-cli'
mise Installed contents of archive file into /Users/yasushi/.local/share/mise/installs/ubi-google-container-tools-jib/0.10.0-cli
mise ubi:GoogleContainerTools/[email protected] ✓ installed
mise ~/xxx/mise.toml tools: ubi:GoogleContainerTools/[email protected]
[tools]
"ubi:GoogleContainerTools/jib" = { version = "0.10.0-cli", extract_all = "true", tag_regex = "-cli" }
% sed -i.bak -e 's/0.10.0-cli/latest/' mise.toml
% cat mise.toml
[tools]
"ubi:GoogleContainerTools/jib" = { version = "latest", extract_all = "true", tag_regex = "-cli" }
% mise cache clear
mise cache cleared
% mise outdated
name requested current latest source
ubi:GoogleContainerTools/jib latest 0.10.0-cli 3.4.4-maven ~/xxx/mise.toml The issue is that when using Is this the intended behavior? Should |
Beta Was this translation helpful? Give feedback.
-
Description
After installing a package using ubi backend with tag_regex, subsequent
ls-remote
commands show unfiltered tags that should have been filtered out by the regex.Steps to Reproduce
Current Behavior
After installing a package, the
tag_regex
filter in the ubi backend stops working, showing all tags including those that should be filtered out (e.g.,detect-targets-v0.1.38
).Expected Behavior
The
tag_regex
filter should continue to work after installation, showing only tags that match the specified regex pattern (^\d+\.
).Workaround
Removing the installation directory (
~/.local/share/mise/installs/ubi-cargo-bins-cargo-binstall
) and clearing the cache restores the proper tag_regex filtering behavior.Environment
Beta Was this translation helpful? Give feedback.
All reactions