aboutcode-org / aboutcode-org/nuget-inspector

Wrong resolution of home directory

Ouverte
#52 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
5
Forks
13
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.