Skip to content

"no UI or external dependencies." is misleading #125

@AlexUrbanAc

Description

@AlexUrbanAc

Describe the Bug

The library has a dependency on git, which needs to be installed on the machine.

Steps to Reproduce

Implement a simple two-liner program that references the library from NuGet and then calls CredentialManager.Create.
Run program on dev machine -> works.
Run program on non-dev machine -> exception as shown below.

Expected Behavior

the library should work without git
OR
the required dependency to git should be mentioned in the readme.

Exception with Stack Trace

System.Exception: Failed to locate 'git.exe' executable on the path.
   at GitCredentialManager.EnvironmentExtensions.LocateExecutable(IEnvironment environment, String program) in /_/src/Core/EnvironmentBase.cs:line 192
   at GitCredentialManager.CommandContext.GetGitPath(IEnvironment environment, IFileSystem fileSystem, ITrace trace) in /_/src/Core/CommandContext.cs:line 189
   at GitCredentialManager.CommandContext..ctor() in /_/src/Core/CommandContext.cs:line 109
   at GitCredentialManager.CredentialManager.Create(String namespace) in /_/src/CredentialManager/CredentialManager.cs:line 27

Version Info

Devlooped.CredentialManager 2.6.1 from NuGet

Additional Info

Back this issue
Back this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions