Skip to content

Directory not found exception during clean dead versions #1883

Open
@KarlNylander

Description

@KarlNylander

Squirrel version(s)
Which version(s) of the project are you using?

Description
We occasionally get a System.IO.DirectoryNotFoundException during cleaning of dead versions. This only happens rarely (in our case about 12 times since the end of 2021 from what I can find).

warn: ApplyReleasesImpl: Failed to clean dead versions, continuing anyways: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\admin\AppData\Local\Project\packages\RELEASES'.

Not sure if this is an issue that you're already aware of or not since it seems to happen so rarely.

Steps to recreate
We have not been able to reproduce this issue since it happens so rarely.

Expected behavior
It should clean the dead versions since the path is correct.

Actual behavior
It seems that the path can't be found which result in an error and crash.

Additional information
The longest gap we went without it was about 1 year, but this year it has happened almost once a month so it doesn't seem to be consistent.

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