aboutcode-org / aboutcode-org/nuget-inspector

Wrong resolution of home directory

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
5
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.