fix: install/uninstall all plugins in Makefile - #72
Conversation
make install now cargo-installs meta + all 3 plugins (meta-git, meta-project, meta-rust). make uninstall removes them from both ~/.cargo/bin/ and ~/.meta/plugins/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review WalkthroughThe Makefile's install and uninstall targets are expanded to manage multiple CLI binaries ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR expands the Key changes:
Confidence Score: 5/5Safe to merge — changes are additive and correct, with graceful error handling on uninstall. All package names verified against Cargo.lock; the No files require special attention.
|
| Filename | Overview |
|---|---|
| Makefile | Adds cargo install for all 3 plugins in the install target and expands uninstall to gracefully remove all 4 cargo packages plus ~/.meta/plugins/ copies; package names verified against Cargo.lock. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[make install] --> B["cargo install meta_cli → ~/.cargo/bin/meta"]
A --> C["cargo install meta_git_cli → ~/.cargo/bin/meta-git"]
A --> D["cargo install meta_project_cli → ~/.cargo/bin/meta-project"]
A --> E["cargo install meta_rust_cli → ~/.cargo/bin/meta-rust"]
F[make install-all] --> A
F --> G["make install-plugins → ~/.meta/plugins/"]
H[make uninstall] --> I["cargo uninstall meta OR true"]
H --> J["cargo uninstall meta_git_cli OR true"]
H --> K["cargo uninstall meta_project_cli OR true"]
H --> L["cargo uninstall meta_rust_cli OR true"]
H --> M["rm -f ~/.meta/plugins/meta-git meta-project meta-rust"]
Prompt To Fix All With AI
This is a comment left during a code review.
Path: Makefile
Line: 106
Comment:
**`.PHONY` missing several targets including `uninstall`**
The `uninstall` target (and several others like `clean`, `clean-plugins`, `install-plugins`, `install-all`, `build-plugins`) are absent from the `.PHONY` declaration. While unlikely in practice, if a file named `uninstall` (or any of these) were ever created at the repo root, Make would silently skip the recipe, thinking the target is already up-to-date.
```suggestion
.PHONY: install install-plugins install-all build build-all build-plugins run test bats release integration-test uninstall clean clean-plugins rebuild-plugins rm-meta
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "fix: install/uninstall all plugins in Ma..." | Re-trigger Greptile
| cargo uninstall meta_rust_cli 2>/dev/null || true | ||
| rm -f ~/.meta/plugins/meta-git ~/.meta/plugins/meta-project ~/.meta/plugins/meta-rust | ||
|
|
||
| .PHONY: install build run test bats release integration-test |
There was a problem hiding this comment.
.PHONY missing several targets including uninstall
The uninstall target (and several others like clean, clean-plugins, install-plugins, install-all, build-plugins) are absent from the .PHONY declaration. While unlikely in practice, if a file named uninstall (or any of these) were ever created at the repo root, Make would silently skip the recipe, thinking the target is already up-to-date.
| .PHONY: install build run test bats release integration-test | |
| .PHONY: install install-plugins install-all build build-all build-plugins run test bats release integration-test uninstall clean clean-plugins rebuild-plugins rm-meta |
Prompt To Fix With AI
This is a comment left during a code review.
Path: Makefile
Line: 106
Comment:
**`.PHONY` missing several targets including `uninstall`**
The `uninstall` target (and several others like `clean`, `clean-plugins`, `install-plugins`, `install-all`, `build-plugins`) are absent from the `.PHONY` declaration. While unlikely in practice, if a file named `uninstall` (or any of these) were ever created at the repo root, Make would silently skip the recipe, thinking the target is already up-to-date.
```suggestion
.PHONY: install install-plugins install-all build build-all build-plugins run test bats release integration-test uninstall clean clean-plugins rebuild-plugins rm-meta
```
How can I resolve this? If you propose a fix, please make it concise.
Summary
make installnow cargo-installs meta + all 3 plugins (meta-git, meta-project, meta-rust)make uninstallremoves all binaries from~/.cargo/bin/and~/.meta/plugins/metabinary was handled, leaving orphaned plugin binariesTest plan
make installinstalls meta + all 3 plugins to~/.cargo/bin/make uninstallremoves all 4 binaries +~/.meta/plugins/copiesmake uninstalldoesn't fail if some binaries are already absent🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores