From 42131869084d45b41385a574084a4f65bc9ad332 Mon Sep 17 00:00:00 2001 From: jlfaucher Date: Sat, 22 Jun 2024 17:48:35 +0200 Subject: [PATCH] Bypass git clone error: --depth 1 Error when cloning Executor with https: fatal: fetch-pack: invalid index-pack output --- build-executor.txt | 16 ++++++++++------ build-oorexx.txt | 6 ++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/build-executor.txt b/build-executor.txt index 0cd83df..ce27744 100644 --- a/build-executor.txt +++ b/build-executor.txt @@ -7,6 +7,7 @@ Compiler prerequisite: Tested with Apple clang version 14.0.0 (clang-1400.0.29.202) Tested with clang+llvm-15.0.3-x86_64-apple-darwin Tested with clang+llvm-15.0.6-arm64-apple-darwin21.0 + Tested under WSL with gcc/g++ GNU 11.4.0 Tested with Microsoft Visual Studio Community 2022 (64-bit) - Version 17.3.6 Shell prerequisite for MacOS: @@ -19,7 +20,7 @@ Shell prerequisite for MacOS: Shell prerequisite for Linux: Works only with bash. If your shell is not bash, then launch bash from your shell session and follow the instructions. - At the end, you can launch yor shell from the bash session, it will inherit the environment + At the end, you can launch your shell from the bash session, it will inherit the environment variables but NOT the aliases. Shell prerequisite for Windows: @@ -42,7 +43,8 @@ cd rexx git clone https://github.com/jlfaucher/builder.git mkdir oorexx cd oorexx -git clone https://github.com/jlfaucher/executor.git +# --depth 1 needed because of error "fetch-pack: invalid index-pack output" +git clone --depth 1 https://github.com/jlfaucher/executor.git # Initialize the build environment: # build//d1/d2/.../system-arch/compiler/config @@ -92,12 +94,13 @@ cd rexx git clone https://github.com/jlfaucher/builder.git mkdir oorexx cd oorexx -git clone https://github.com/jlfaucher/executor.git +# --depth 1 needed because of error "fetch-pack: invalid index-pack output" +git clone --depth 1 https://github.com/jlfaucher/executor.git # Initialize the build environment: # build//d1/d2/.../system-arch/compiler/config # system-arch is ubuntu-aarch64 or ubuntu-x86_64. -. ../builder/scripts/setenv build/executor.master/sandbox/jlf/trunk/linux-x86_64/gcc/release +. ../builder/scripts/setenv build/executor.master/sandbox/jlf/trunk/ubuntu-x86_64/gcc/release # Several aliases are defined to navigate easily in the directories: alias @@ -123,7 +126,7 @@ oorexxshell # Next time, when starting from a fresh console: cd /rexx/oorexx # system-arch is ubuntu-aarch64 or ubuntu-x86_64. -. ../builder/scripts/setenv build/executor.master/sandbox/jlf/trunk/linux-x86_64/gcc/release +. ../builder/scripts/setenv build/executor.master/sandbox/jlf/trunk/ubuntu-x86_64/gcc/release -------------------------------------------------------------------------------- @@ -143,7 +146,8 @@ cd rexx git clone https://github.com/jlfaucher/builder.git mkdir oorexx cd oorexx -git clone https://github.com/jlfaucher/executor.git +:: --depth 1 needed because of error "fetch-pack: invalid index-pack output" +git clone --depth 1 https://github.com/jlfaucher/executor.git :: Initialize the build environment: :: build//d1/d2/.../system-arch/compiler/config diff --git a/build-oorexx.txt b/build-oorexx.txt index 5923b93..58aa0bc 100644 --- a/build-oorexx.txt +++ b/build-oorexx.txt @@ -4,6 +4,7 @@ Compiler prerequisite for Executor: Tested with Apple clang version 14.0.0 (clang-1400.0.29.202) Tested with clang+llvm-15.0.3-x86_64-apple-darwin Tested with clang+llvm-15.0.6-arm64-apple-darwin21.0 + Tested under WSL with gcc/g++ GNU 11.4.0 Tested with Microsoft Visual Studio Community 2022 (64-bit) - Version 17.3.6 Shell prerequisite for MacOS: @@ -16,7 +17,7 @@ Shell prerequisite for MacOS: Shell prerequisite for Linux: Works only with bash. If your shell is not bash, then launch bash from your shell session and follow the instructions. - At the end, you can launch yor shell from the bash session, it will inherit the environment + At the end, you can launch your shell from the bash session, it will inherit the environment variables but NOT the aliases. Shell prerequisite for Windows: @@ -197,7 +198,8 @@ Getting the git sources of executor -------------------------------------------------------------------------------- cd /local/rexx/oorexx -git clone https://github.com/jlfaucher/executor.git +# --depth 1 needed because of error "fetch-pack: invalid index-pack output" +git clone --depth 1 https://github.com/jlfaucher/executor.git --------------------------------------------------------------------------------