Commit 9b3dadf
fix: skip CLI download in build.rs when DOCS_RS env var is set (#1660)
* Initial plan
* fix: skip CLI download in build.rs when DOCS_RS env var is set
docs.rs builds in a sandboxed environment without network access.
The build.rs script was failing because it tried to download the
Copilot CLI binary. Detect the DOCS_RS environment variable (set
automatically by docs.rs) and skip the download, similar to the
existing COPILOT_SKIP_CLI_DOWNLOAD escape hatch.
Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Co-authored-by: Ed Burns <edburns@microsoft.com>1 parent ff49ed2 commit 9b3dadf
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
0 commit comments