aboutcode-org / aboutcode-org/nuget-inspector

Wrong resolution of home directory

Aperta
#52 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
5
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.