Skip to content

Commit

Permalink
Delete ./vendor before each sync
Browse files Browse the repository at this point in the history
This workarounds missing namespace errors (see #
674)
  • Loading branch information
petefoth committed Sep 3, 2024
1 parent b8705d2 commit 0fc1a57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/new_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# For each device in `$DEVICE_LIST`
# - setup subdirectories
# - `repo init`
# - Delete ./vendor
# - `repo sync`
# - setup our overlays
# - Add custom packages to be installed
Expand Down Expand Up @@ -169,6 +170,7 @@ if [ "$INCLUDE_PROPRIETARY" = true ]; then
"https://gitlab.com/the-muppets/manifest/raw/$themuppets_branch/muppets.xml" .repo/local_manifests/proprietary_gitlab.xml
fi


# Sync mirror if we're using one
if [ "$LOCAL_MIRROR" = true ]; then

Expand Down Expand Up @@ -226,6 +228,10 @@ for codename in ${devices//,/ }; do
# `repo sync`
if [ "$CALL_REPO_SYNC" = true ]; then
echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log"

# Delete ./vendor
rm -rf vendor || true

repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --current-branch --force-sync &>> "$repo_log"
else
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
Expand Down

0 comments on commit 0fc1a57

Please sign in to comment.