docs: add note about origin URLs to GN build docs (#14530)
This commit is contained in:
parent
f44722d5d3
commit
0ab95b76a7
1 changed files with 11 additions and 1 deletions
|
@ -26,7 +26,7 @@ try to download a Google-internal version that only Googlers have access to).
|
|||
|
||||
## Cached builds (optional step)
|
||||
|
||||
### GIT_CACHE_PATH
|
||||
### GIT\_CACHE\_PATH
|
||||
|
||||
If you plan on building Electron more than once, adding a git cache will
|
||||
speed up subsequent calls to `gclient`. To do this, set a `GIT_CACHE_PATH`
|
||||
|
@ -38,6 +38,16 @@ $ mkdir -p "${GIT_CACHE_PATH}"
|
|||
# This will use about 16G.
|
||||
```
|
||||
|
||||
> **NOTE**: the git cache will set the `origin` of the `src/electron`
|
||||
> repository to point to the local cache, instead of the upstream git
|
||||
> repository. This is undesirable when running `git push`—you probably want to
|
||||
> push to github, not your local cache. To fix this, from the `src/electron`
|
||||
> directory, run:
|
||||
|
||||
```sh
|
||||
$ git remote set-url origin https://github.com/electron/electron
|
||||
```
|
||||
|
||||
### sccache
|
||||
|
||||
Thousands of files must be compiled to build Chromium and Electron.
|
||||
|
|
Loading…
Add table
Reference in a new issue