-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subcommand to cleanup images? #760
Comments
I think to avoid clashes with cargo (not likely), this should be a |
That sounds good, so that would also work for the target info and |
That sounds fair. We can bundle the extra tool with a |
I think that sounds perfect. I'll start migrating things over after I finish the workspaces stuff, which I think has higher priority. |
Actually, I don't think the build script should be replaced with a rust program, we should instead use a docker bake definition (which can possibly be improved with a rust program). |
767: Add cross-dev and cross-util commands. r=Emilgardis a=Alexhuszagh The cross-dev command has the `target-info` subcommand, which target information (libc, compiler, C++, qemu version) for a given target. ```bash cross-dev target-info cross-dev target-info arm-unknown-linux-gnueabihf ``` The cross-util command has the `list-images` and `remove-images` subcommands. `list-images` lists all cross images, including local development files. `remove-images` removes cross images. ```bash cross-util list-images cross-util remove-images cross-util remove-images arm-unknown-linux-gnueabihf ``` Closes #760. Co-authored-by: Alex Huszagh <[email protected]>
Checklist
Describe your request
Currently, users have to be proficient with docker or podman to cleanup images, when we should be able to remove any installed images if desired from a cross subcommand.
For example:
This would then filter for all images starting with
ghcr.io/cross-rs
, andrustembedded/cross
, and then remove all the matching images. We could also accept a list of targets, or empty for all, to remove all matching targets. For the former, we would want to filter for those matchingmain
oredge
, to avoid removing local images.For example:
We could probably at the same time provide a
list-images
subcommand, to list what images have been previously installed, using the same syntax.Describe why this would be a good inclusion for
cross
This would further simplify using cross as a "zero-setup" cross-compilation tool, and also avoid users having to manually cleanup numerous images or write a script to automatically remove all images to reduce the storage requirements of cross.
The text was updated successfully, but these errors were encountered: