Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.

feat(project): report each project's alias in project list --json - #22

Closed
gold-silver-copper wants to merge 3 commits into
mainfrom
refactor/drop-meta-worktree-identity
Closed

gold-silver-copper wants to merge 3 commits into
mainfrom
refactor/drop-meta-worktree-identity

Conversation

@gold-silver-copper

@gold-silver-copper gold-silver-copper commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What and why

meta project list --json reports each project's name and path, but not the name meta's own --recursive commands take for it. meta git worktree create --recursive --repo and meta git worktree list name a project by its path from the workspace root (meta_core::config::build_project_map): child/libs/gc for a project at libs/gc inside the nested meta repo child. A tool that only reads meta's JSON (atc's workspace provider, under the rule that atc talks to meta only through meta … --json) had to rebuild that string from meta's naming rule.

This adds alias to the JSON:

  • every project node: its path from the root (child, child/libs/gc), the same key build_project_map gives it;
  • the top level: "alias": "." for the root, as --repo . takes it.

meta git worktree list --json already reports alias for set members, so both commands now name members the same way. Nothing else changes; the field is additive.

Tests

test_project_list_json_recursive now uses a nested project cloned at a path other than its name (grandchild at libs/gc) and asserts alias is . for the root, child, and child/libs/gc. cargo test -p meta_project_cli: 32 passed.

Related

Task: [[tasks/harmony-2794]]

(Any bot-generated summary appended below is not part of this description.)


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d0ef3cfb-1527-4acb-96c3-2bcc26f9da33
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant