Repository navigation
feat(discover): route the standalone docker-compose binary - #3653
Closed
dwin-gharibi wants to merge 1 commit into
Closed
dwin-gharibi wants to merge 1 commit into
dwin-gharibi wants to merge 1 commit into
Conversation
The docker rule covers docker compose ps/logs/build, the v2 subcommand spelling. The standalone hyphenated binary -- still what a large share of projects and CI scripts invoke -- matched nothing, so docker-compose ps ran unfiltered while docker compose ps was compressed by the very same filter. Scoped to the three subcommands that have filters. up, down and exec stay native: they are long-running or interactive, and rtk captures rather than streams.
Contributor
|
This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet. |
Contributor
|
Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3652.
Summary
docker-compose (ps|logs|build)tortk docker compose …, the same filtersthe v2 subcommand spelling already reaches.
up,downandexecstay native —upand
execare long-running or interactive, and rtk captures rather than streams.Test plan
cargo fmt --all && cargo clippy --all-targets && cargo testrtk <command>output inspectedUnit tests (added)
src/discover/registry.rs, moduledocker_compose_hyphenated:hyphenated_form_routes_to_the_same_filter—ps,logs,build, andps -a, each landingon
rtk docker compose ….subcommand_form_still_rewrites— the v2 spelling is untouched.unfiltered_compose_subcommands_are_left_alone—up,down,exec web shreturnNone.Behavioural check (fake
docker-composeon PATH)The fake honours the
--format "{{.Name}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"template rtkpasses, as the real binary does:
docker-compose psweb,db,cache, andExitedstatedocker-compose logsFATALline