Merge pull request #2036 from samalba/docs-windows-symlink

docs: add tip for support symlink with git on Windows
This commit is contained in:
Andrea Luzzardi 2022-04-05 11:31:22 -07:00 committed by GitHub
commit 18f1eae6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ With Docker running, we are ready to download our example app and run its CI/CD
Still in your `Command Prompt` terminal:
```shell
git clone https://github.com/dagger/dagger
git clone -c core.symlinks=true https://github.com/dagger/dagger
cd dagger
git checkout v0.2.4
@ -240,6 +240,12 @@ cd pkg/universe.dagger.io/examples/todoapp
dagger do build
```
:::tip
By default, git on Windows does not automatically convert posix symbolic links, which explains the extra option `core.symlinks=true` while cloning the repository.
But you can also enable this once and for all in your git configuration, by running the following command from a Powershell terminal: `git config --global core.symlinks true`.
:::
With an empty cache, installing all dependencies, then testing & generating a build for this example app completes in just under a minute:
```shell