aboutcode-org / aboutcode-org/nuget-inspector

Wrong resolution of home directory

オープン
#52 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
5
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

説明

Using `~` to reference the home directory leads to a wrongly resolved file path when calling `nuget-inspector`.

I call `ni` using this command:

```sh
nuget-inspector --project-file=~/dev/MyProject/MySolution.sln
```

which leads to this error:

```sh
ERROR: scan failed: System.IO.DirectoryNotFoundException: Could not find a part of the path
'/home/myuser/~/dev/MyProject/MySolution.sln
```

Obviously the current directory is simply prepended to the given path but `~` is ignored although resolving it would give an absolute path already.

Best regards.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。