@@ -23,22 +23,22 @@ func (m *MiseToolProvider) resolveToConcreteVersionAfterInstall(tool provider.To
2323 // But we can use `mise latest` to find out the concrete version.
2424 switch tool .ResolutionStrategy {
2525 case provider .ResolutionStrategyLatestInstalled :
26- return m .resolveToLatestInstalled (string ( tool .ToolName ) , tool .UnparsedVersion )
26+ return m .resolveToLatestInstalled (tool .ToolName , tool .UnparsedVersion )
2727 case provider .ResolutionStrategyLatestReleased , provider .ResolutionStrategyStrict :
2828 // Mise works with fuzzy versions by default, so it happily installs both node@20 and [email protected] . 2929 // Therefore, when the Bitrise config contains simply 20 (and not 20:latest), it actually behaves
3030 // as "latest released".
31- return m .resolveToLatestReleased (string ( tool .ToolName ) , tool .UnparsedVersion )
31+ return m .resolveToLatestReleased (tool .ToolName , tool .UnparsedVersion )
3232 default :
3333 return "" , fmt .Errorf ("unknown resolution strategy: %v" , tool .ResolutionStrategy )
3434 }
3535}
3636
37- func (m * MiseToolProvider ) resolveToLatestReleased (toolName , version string ) (string , error ) {
37+ func (m * MiseToolProvider ) resolveToLatestReleased (toolName provider. ToolID , version string ) (string , error ) {
3838 return resolveToLatestReleased (& m .ExecEnv , toolName , version )
3939}
4040
41- func resolveToLatestReleased (executor MiseExecutor , toolName , version string ) (string , error ) {
41+ func resolveToLatestReleased (executor MiseExecutor , toolName provider. ToolID , version string ) (string , error ) {
4242 // Even if version is empty string "sometool@" will not cause an error.
4343 output , err := executor .RunMiseWithTimeout (execenv .DefaultTimeout , "latest" , fmt .Sprintf ("%s@%s" , toolName , version ))
4444 if err != nil {
@@ -53,13 +53,13 @@ func resolveToLatestReleased(executor MiseExecutor, toolName, version string) (s
5353 return v , nil
5454}
5555
56- func (m * MiseToolProvider ) resolveToLatestInstalled (toolName , version string ) (string , error ) {
56+ func (m * MiseToolProvider ) resolveToLatestInstalled (toolName provider. ToolID , version string ) (string , error ) {
5757 return resolveToLatestInstalled (& m .ExecEnv , toolName , version )
5858}
5959
60- func resolveToLatestInstalled (executor MiseExecutor , toolName , version string ) (string , error ) {
60+ func resolveToLatestInstalled (executor MiseExecutor , toolName provider. ToolID , version string ) (string , error ) {
6161 // Even if version is empty string "sometool@" will not cause an error.
62- var toolString = toolName
62+ var toolString = string ( toolName )
6363 if version != "" && version != "installed" {
6464 // tool@installed is not valid, so only append version when it's not "installed"
6565 toolString = fmt .Sprintf ("%s@%s" , toolName , version )
0 commit comments