Skip to content

Commit

Permalink
Fix build process (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza authored Sep 26, 2024
1 parent 3ec23b3 commit d494ec9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

rm -rf haystack-tutorials
git clone --depth=1 https://github.com/deepset-ai/haystack-tutorials.git
# We fetch the whole repo cause we want to use some info from the
# history, like creation date and last modified date of a notebook.
# If we fetch we depth 1 we don't get correct dates, and if we fetch with
# --filter=tree:0 the process runs slower than cloning the whole repo.
git clone https://github.com/deepset-ai/haystack-tutorials.git

cd haystack-tutorials
echo "Installing requirements for haystack-tutorials..."
Expand All @@ -17,7 +21,11 @@ cp ./haystack-tutorials/tutorials/*.ipynb ./static/downloads
ls ./static/downloads

rm -rf haystack-cookbook
git clone --depth=1 https://github.com/deepset-ai/haystack-cookbook.git
# We fetch the whole repo cause we want to use some info from the
# history, like creation date and last modified date of a notebook.
# If we fetch we depth 1 we don't get correct dates, and if we fetch with
# --filter=tree:0 the process runs slower than cloning the whole repo.
git clone https://github.com/deepset-ai/haystack-cookbook.git
cd haystack-cookbook
echo "Installing requirements for haystack-cookbook..."
python3 -m ensurepip --upgrade
Expand Down

0 comments on commit d494ec9

Please sign in to comment.