Skip to content

[Pipedv1] Scan preinstalled tools#6710

Open
armistcxy wants to merge 2 commits intopipe-cd:masterfrom
armistcxy:plugin/tool-registry
Open

[Pipedv1] Scan preinstalled tools#6710
armistcxy wants to merge 2 commits intopipe-cd:masterfrom
armistcxy:plugin/tool-registry

Conversation

@armistcxy
Copy link
Copy Markdown
Contributor

What this PR does: Adds scanning of the tools directory on registry initialization in pipedv1, so already-installed tools are recognized without re-downloading.

Also cleans up the outDir after a successful tool install

Why we need it: Previously, newToolRegistry initialized installedTools as an empty map, causing piped to re-download and overwrite all tool binaries on every restart even if the binaries already existed on disk

Which issue(s) this PR fixes:

Fixes #6709

Does this PR introduce a user-facing change?: No

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Hoang Ngo <adlehoang118@gmail.com>
Signed-off-by: Hoang Ngo <adlehoang118@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipedv1 tool registry does not scan pre-installed tools

1 participant