You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/import-buck2-deps/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ The Mega relative path is derived starting from the first `third-party/` path co
11
11
- Automatically discovers import targets by scanning the directory tree and identifying version directories containing a `BUCK` file (by default, version directories must look like `x.y.z`)
12
12
- Skips directories that already have a Git repository somewhere above them to avoid duplicate imports
13
13
- For each import target, automatically runs: repo init, branch create/switch, initial commit, remote configuration, and push to Mega
14
+
- Always removes the per-repo `.git` directory after processing so reruns rediscover candidates
14
15
- Optionally rewrites `//third-party/...` dependency labels in `BUCK` to `//...` (for buckal generated artifacts)
15
16
- Supports concurrent imports (`--jobs`)
16
17
- Supports an interactive UI (`--ui`): rich (if available) or plain; in rich mode, logs keep only the most recent 12 lines and show a Results summary at the end
- If the scan root does not exist, is not a directory, or is not readable: print an Error and exit with code 2
95
97
- If a child directory cannot be accessed during scanning: print a Warning and continue scanning other directories
96
98
- If a single repo import fails: list the failed repo and reason in the rich UI Results
99
+
- After each repo attempt (success or failure), the script removes the local `.git` directory under that repo directory so retries/reruns start cleanly
97
100
- With `--fail-fast`: stop after the first failure; skipped tasks are not counted as Failed
98
101
- With `--retry N`: retry failed repos up to N times; exit non-zero if still failing after retries
0 commit comments