diff --git a/.github/workflows/build_vinix_locally.sh b/.github/workflows/build_vinix_locally.sh index 7222e1419e8a24..67486eec9020ec 100755 --- a/.github/workflows/build_vinix_locally.sh +++ b/.github/workflows/build_vinix_locally.sh @@ -21,11 +21,11 @@ mkdir -p $BUILD cd $BUILD echo "Clone current Vinix" -./v retry -- git clone https://github.com/vlang/vinix.git --depth=1 +./v retry -- git clone --depth=1 https://github.com/vlang/vinix.git cd $BUILD echo "Clone current mlibc" -./v retry -- git clone https://github.com/managarm/mlibc.git --depth=1 +./v retry -- git clone --depth=1 https://github.com/managarm/mlibc.git cd $BUILD echo "Patch mlibc for Vinix" diff --git a/.github/workflows/vinix_ci.yml b/.github/workflows/vinix_ci.yml index 9c2acda24e012e..946d2244c77d8a 100644 --- a/.github/workflows/vinix_ci.yml +++ b/.github/workflows/vinix_ci.yml @@ -36,7 +36,7 @@ jobs: ./v retry -- sudo apt install build-essential -y - name: Clone current Vinix - run: ./v retry -- git clone https://github.com/vlang/vinix.git + run: ./v retry -- git clone --depth=1 https://github.com/vlang/vinix.git - name: Download Vinix kernel dependencies run: cd vinix/kernel && ./get-deps diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cfbc62c9b5f81c..4373fd91949d2d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -123,7 +123,7 @@ accordingly in the steps below.) Let's say that the forked repository is at `https://github.com/YOUR_GITHUB_USERNAME/v` . 2. Clone the main v repository https://github.com/vlang/v to a local folder on - your computer, say named nv/ (`git clone https://github.com/vlang/v nv`) + your computer, say named nv/ (`git clone --depth=1 https://github.com/vlang/v nv`) 3. `cd nv` 3.1 (optional) Run these commands, which ensure that all your code will be automatically formatted, before committing: diff --git a/Dockerfile b/Dockerfile index d4bb54a862a139..9a0a89fd524e1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN apt update && \ COPY . /vlang-local RUN if [ -z "${USE_LOCAL}" ] ; then \ - git clone https://github.com/vlang/v/ /opt/vlang && \ + git clone --depth=1 https://github.com/vlang/v /opt/vlang && \ rm -rf /vlang-local ; \ else \ mv /vlang-local/* . && \ diff --git a/README.md b/README.md index feef110033db8f..10c15f23232c37 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Note: On Ubuntu/Debian, you may need to run `sudo apt install git build-essentia To get started, execute the following in your terminal/shell: ```bash -git clone https://github.com/vlang/v +git clone --depth=1 https://github.com/vlang/v cd v make ``` @@ -168,7 +168,7 @@ shell/editor after that, so that it can pick up the new PATH variable. ```bash # xbps-install -Su base-devel # xbps-install libatomic-devel -$ git clone https://github.com/vlang/v +$ git clone --depth=1 https://github.com/vlang/v $ cd v $ make ``` @@ -179,7 +179,7 @@ $ make ```bash -git clone https://github.com/vlang/v +git clone --depth=1 https://github.com/vlang/v cd v docker build -t vlang . docker run --rm -it vlang:latest @@ -188,7 +188,7 @@ docker run --rm -it vlang:latest ### Docker with Alpine/musl ```bash -git clone https://github.com/vlang/v +git clone --depth=1 https://github.com/vlang/v cd v docker build -t vlang_alpine - < Dockerfile.alpine alias with_alpine='docker run -u 1000:1000 --rm -it -v .:/src -w /src vlang_alpine:latest' @@ -219,7 +219,7 @@ Linux/macos: ```bash pkg install clang libexecinfo libgc libgc-static make git -git clone https://github.com/vlang/v +git clone --depth=1 https://github.com/vlang/v cd v make ``` diff --git a/doc/docs.md b/doc/docs.md index 6a6a865528a9a9..30133f781d5376 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -24,7 +24,7 @@ Anything you can do in other languages, you can do in V. The best way to get the latest and greatest V, is to install it from source. It is easy, and it takes only a few seconds: ```bash -git clone https://github.com/vlang/v +git clone --depth=1 https://github.com/vlang/v cd v make ```