Skip to content

cache name with prerelease truncated #424

Closed

Description

@ctaggart

This is happening on a couple different projects of mine, both using the same prerelease suffix scheme and both on AppVeyor. Paket is downloading files like SourceLink.SymbolStore.0.5.0-ci1411131947.nupkg and caching them as SourceLink.SymbolStore.0.5.0-ci.nupkg in %localappdata%\nuget\cache. Without the 1411131947 part of the suffix, the same file keeps getting extracted. The workaround is to clear packages and the cache.

Activity

  1. mexx commented on Dec 5, 2014

    @mexx
    Contributor

    The normalized version do not handle number part of prerelease identifiers. See NuGetV2.fs#L238 and SemVer.fs#L69.

  2. added a commit that references this issue on Dec 5, 2014
  3. forki commented on Dec 5, 2014

    @forki
    Member

    Will try to reproduce
    On Dec 5, 2014 7:43 AM, "Max Malook" [email protected] wrote:

    The normalized version do not handle number part of prerelease
    identifiers. See NuGetV2.fs#L238

    let fi = FileInfo(Path.Combine(CacheFolder,sprintf "%s.%s.json" package (version.Normalize())))

    and SemVer.fs#L69
    | Some preRelease -> "-" + preRelease.Name + preReleaseBuild

    .

    —
    Reply to this email directly or view it on GitHub
    #424 (comment).

  4. forki commented on Dec 5, 2014

    @forki
    Member

    Ah didn't see @mexx already sent a pull request.

  5. added a commit that references this issue on Dec 5, 2014
  6. ctaggart commented on Dec 5, 2014

    @ctaggart
    ContributorAuthor

    Thanks @mexx!

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