Loading
nixpkgs-plugin-update: avoid mutating cached plugins on cache hits
Cache entries are seeded from current_plugins, so cache hits can return the same Plugin instances that current_plugin_map uses as the baseline state. Updating those objects in place mutates the "old" plugin data during the run. That can hide version changes and breaks alias handling when multiple plugin specs resolve to the same cached source. Return a replaced Plugin instead of mutating the cached instance.