bamaer opened a new issue, #9610:
URL: https://github.com/apache/hop/issues/9610
### Apache Hop version?
2.21.0-SNAPSHOT (main)
### Java version?
21
### Operating system
Other
### What happened?
Installing a newer version of a plugin that the marketplace installed copies
the new zip over the existing files and rewrites the receipt. Files that only
the old version had are not removed. When a bundled library changed version,
both jars end up in the plugin folder and on its classpath. `hop marketplace
apply` does the same when a version in `hop-env.yaml` changes.
The new receipt only lists the new version's files, so a later uninstall
leaves the old-only files behind as well.
Steps:
1. `hop marketplace install <plugin>:<v1>`
2. `hop marketplace install <plugin>:<v2>`, where a jar in the zip changed
version
3. List the plugin folder: the old and the new jar are both there.
Expected: only the files of v2 remain. Shared `lib/core` jars are out of
scope here (#{N5}).
The code is in `PluginInstaller.install` and `activateStaged`: activation
copies with `REPLACE_EXISTING` and never deletes. The update notification works
around this by telling users to uninstall first. Not OS-specific. Described
from the code, not reproduced yet.
### Issue Priority
Priority: 2
### Issue Component
Component: Marketplace
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]