Examples: add --shallow-submodules to clone command (#956)

* Examples: add  --shallow-submodules to clone command
* Use same URL format across languages
This commit is contained in:
Patrice Chalin 2022-03-23 14:01:51 -04:00 committed by GitHub
parent 9abb2823db
commit b4656bd108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 16 additions and 16 deletions

View File

@ -96,7 +96,7 @@ Install the basic tools required to build gRPC:
Clone the `grpc` repo and its submodules:
```sh
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
```
#### Build and install gRPC and Protocol Buffers

View File

@ -31,7 +31,7 @@ download the example, clone the `grpc` repository by running the following
command:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
```

View File

@ -30,7 +30,7 @@ and other tutorials):
```sh
# Clone the repository to get the example code:
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
```

View File

@ -33,7 +33,7 @@ To download the example, clone the `grpc-dart` repository by running the followi
command:
```sh
$ git clone --depth 1 https://github.com/grpc/grpc-dart.git
$ git clone --depth 1 https://github.com/grpc/grpc-dart
```
Then change your current directory to `grpc-dart/example/route_guide`:

View File

@ -35,7 +35,7 @@ To download the example, clone the latest release in `grpc-java` repository by
running the following command:
```sh
$ git clone -b {{< param grpc_vers.java >}} --depth 1 https://github.com/grpc/grpc-java.git
$ git clone -b {{< param grpc_vers.java >}} --depth 1 https://github.com/grpc/grpc-java
```
Then change your current directory to `grpc-java/examples`:

View File

@ -45,7 +45,7 @@ To download the example, clone the `grpc` repository by running the following
command:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
```

View File

@ -18,7 +18,7 @@ and other tutorials):
```sh
# Clone the repository to get the example code
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
# Navigate to the node example
$ cd grpc/examples/node
# Install the example's dependencies

View File

@ -34,7 +34,7 @@ To download the example, clone the `grpc` repository by running the following
commands:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
$ git submodule update --init
```

View File

@ -27,7 +27,7 @@ The example code for our tutorial is in
download the example, clone this repository by running the following commands:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
$ git submodule update --init
```

View File

@ -50,7 +50,7 @@ Quickstart. Copy the source code from GitHub
[repository](https://github.com/grpc/grpc):
```sh
$ git clone --recursive -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc.git
$ git clone --recursive -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
```
### Install gRPC plugins and libraries

View File

@ -33,7 +33,7 @@ To download the example, clone the `grpc` repository and its submodules by runni
command:
```sh
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
```
You need the `grpc-php-plugin` to help you compile `.proto` files. Build it from source as follows:

View File

@ -23,7 +23,7 @@ The example code is part of the [grpc][] repo.
1. Clone the [grpc][] repo and its submodules:
```sh
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone --recurse-submodules -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
```
2. Change to the quick start example directory:

View File

@ -33,7 +33,7 @@ To download the example, clone the `grpc` repository by running the following
command:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
```
Then change your current directory to `examples/python/route_guide` in the repository:

View File

@ -65,7 +65,7 @@ and other tutorials):
```sh
# Clone the repository to get the example code:
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
# Navigate to the "hello, world" Python example:
$ cd grpc/examples/python/helloworld
```

View File

@ -32,7 +32,7 @@ To download the example, clone the `grpc` repository by running the following
command:
```sh
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
$ cd grpc
```

View File

@ -41,7 +41,7 @@ and other tutorials):
```sh
# Clone the repository to get the example code:
$ git clone -b {{< param grpc_vers.core >}} --depth 1 https://github.com/grpc/grpc
$ git clone -b {{< param grpc_vers.core >}} --depth 1 --shallow-submodules https://github.com/grpc/grpc
# Navigate to the "hello, world" Ruby example:
$ cd grpc/examples/ruby
```