aboutcode-org / aboutcode-org/nuget-inspector

Wrong resolution of home directory

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.