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: EXTERNAL_BUILD_SCRIPT.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,13 @@ This ensures you always get the latest build logic without waiting for Docker im
77
77
78
78
To prevent infinite recursion, the system works as follows:
79
79
80
-
1.**Local script**checks if `--no-fetch`is present
81
-
2.**If not present**: Fetches latest version and executes it with `--no-fetch`
82
-
3.**Fetched script**: Sees`--no-fetch` and skips fetching, runs normally
80
+
1.**Local script**stores `--no-fetch`flag in `NO_FETCH` variable during argument parsing
81
+
2.**If `NO_FETCH` is false**: Fetches latest version and executes it with `--no-fetch`
82
+
3.**Fetched script**: Processes`--no-fetch` and sets `NO_FETCH=true`, skips fetching
83
83
4.**Result**: Only one fetch per execution, no infinite loops
84
84
85
+
**Fixed**: Previously there was a bug where `--no-fetch` was consumed during argument parsing, causing infinite recursion. This has been resolved by properly storing the flag before processing arguments.
0 commit comments