jdx / mise

dev tools, env vars, task runner

Home Page:https://mise.jdx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`PATH` is not assembled correctly when `list-bin-paths` has `.`

FranklinYinanDing opened this issue · comments

When using custom plugins like asdf-dotnet, list-bin-paths returns . shared. This is nothing wrong, due to dotnet folder structure.

.
├── 8 -> ./8.0.204
├── 8.0 -> ./8.0.204
├── 8.0.204
│   ├── LICENSE.txt
│   ├── ThirdPartyNotices.txt
│   ├── dotnet
│   ├── host
│   │   └── fxr
│   ├── metadata
│   ├── packs
│   │   ├── Microsoft.AspNetCore.App.Ref
│   │   ├── Microsoft.NETCore.App.Host.osx-arm64
│   │   ├── Microsoft.NETCore.App.Ref
│   │   └── NETStandard.Library.Ref
│   ├── sdk
│   │   └── 8.0.204
│   ├── sdk-manifests
│   │   └── 8.0.100
│   ├── shared
│   │   ├── Microsoft.AspNetCore.App
│   │   └── Microsoft.NETCore.App
│   └── templates
│       └── 8.0.4
└── latest -> ./8.0.204

However, when mise uses list-bin-paths to assemble PATH, this is generated - /Users/user/.local/share/mise/installs/dotnet/8.0.204/.:/Users/user/.local/share/mise/installs/dotnet/8.0.204/shared:other-stuff....

8.0.204/. causes dotnet executable can't be found. The issue should be caused by this line taking . as is.