Skip to content

Commit

Permalink
Bypass git clone error: --depth 1
Browse files Browse the repository at this point in the history
Error when cloning Executor with https:
fatal: fetch-pack: invalid index-pack output
  • Loading branch information
jlfaucher committed Jun 22, 2024
1 parent 7cb66ae commit 4213186
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 10 additions & 6 deletions build-executor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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/<target[.branch]>/d1/d2/.../system-arch/compiler/config
Expand Down Expand Up @@ -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/<target[.branch]>/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
Expand All @@ -123,7 +126,7 @@ oorexxshell
# Next time, when starting from a fresh console:
cd <my directory>/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


--------------------------------------------------------------------------------
Expand All @@ -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/<target[.branch]>/d1/d2/.../system-arch/compiler/config
Expand Down
6 changes: 4 additions & 2 deletions build-oorexx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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


--------------------------------------------------------------------------------
Expand Down

0 comments on commit 4213186

Please sign in to comment.