Sitelet https://github.com/fsprojects/Paket/issues/1928
Skip to content

Calling Paket.Dependencies.GetInstalledPackageModel with wrong casing on mono. #1928

Description

@Krzysztof-Cieslak

Description

Calling Paket.Dependencies.GetInstalledPackageModel with wrong casing (for example paket.core instead of Paket.Core) on mono results in empty InstallationModel. On Windows it normally resolves correct InstallationModel

Repro steps

  1. Be on mono
  2. Add Paket.Core to paket.dependencies file
  3. Create fsx script, reference stuff, find and load dependency file
  4. Run dependenciesFile.GetInstalledPackageModel(None, "paket.core")

Expected behavior

Option 1. Return InstallationModel with all dlls resolved (same behavior as on Windows)
Option 2. Change GetInstalledPackageModel to return option and return None
Option 3. Throw exception ;) ... just kidding

Actual behavior

Returns empty InstallationModel (only with name [wrong casing])

Known workarounds

Call it with well formatted name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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