Skip to content

--clean-cache ignores a configured CachePath and always clears the default directory #160

Description

@rodchristiansen

CleanCache() passes CimianPaths.CacheDir straight to CleanCacheDirectory (cli/managedsoftwareupdate/Program.cs:482) instead of the loaded config.CachePath (Models/UpdateModels.cs:17). Every other cache-aware path uses the configured value — --show-config prints it (:255) and the cache-age report reads it (:354).

On a client with CachePath pointed somewhere other than the default, --clean-cache reports success while the directory that is actually filling the disk is untouched.

Follow-up to #114, which fixed the directory the flag looked in but left it reading the constant rather than the configuration.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions