-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72: On clean update binary proxies r=Hoverbear a=amanjeev This was quick when you figure out where things are already done. A small one. ### Testing #### Start with a clean state.json. For best results, delete the entire criticalup installation directory. #### Install project 1 Use this manifest to install first project. Name this file project1.toml. ```toml manifest-version = 1 [products.ferrocene] release = "stable-24.11.0" packages = [ "cargo-${rustc-host}", "rustc-${rustc-host}", "flip-link-${rustc-host}", ] ``` #### Install project 2 Use this manifest to install first project. Name this file project2.toml. This is same as above except flip-link is removed. ```toml manifest-version = 1 [products.ferrocene] release = "stable-24.11.0" packages = [ "cargo-${rustc-host}", "rustc-${rustc-host}", ] ``` #### Check binary proxies You should see following binary proxies: - cargo - flip-link - rustc - rustdoc - rust-gdb - rust-gdbgui - rust-lldb #### Remove project 1 ```sh cargo run -q remove --project project1.toml. ``` This will remove the project from state file but won't clean up. For cleaning up, we run clean command next. #### Run clean command ```sh cargo run -q clean ``` #### You should see flip-link binary proxy removed; you should see the following binary proxies. - cargo - rustc - rustdoc - rust-gdb - rust-gdbgui - rust-lldb This should show that only flip-link was removed because all other binary proxies were still being referenced by another installation (project 2). Co-authored-by: Amanjeev Sethi <amanjeev.sethi@ferrous-systems.com> Co-authored-by: Ana Hobden <operator@hoverbear.org>
- Loading branch information
Showing
8 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...i/tests/snapshots/cli__clean__clean_deletes_only_unused_installations_also_from_disk.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
crates/criticalup-cli/tests/snapshots/cli__clean__help_message.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters