Skip to content

Wrong resolution of home directory #52

@cz-dev-ge

Description

@cz-dev-ge

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

I call ni using this command:

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

which leads to this error:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions