Skip to content

Commit

Permalink
Ah, right, path repositories are symlinked, so they need to be includ…
Browse files Browse the repository at this point in the history
…ed in the site repository.
  • Loading branch information
greg-1-anderson committed Sep 27, 2024
1 parent 54abbe3 commit 6545e1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/scripts/setup-drupal-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ composer update "pantheon-upstreams/upstream-configuration"
composer -- require "drupal/views_custom_cache_tag:1.x-dev"

# Make a copy of this project and rename it to use in a path repository
mkdir -p /tmp/pantheon_advanced_page_cache
rsync -av --exclude='vendor' --exclude='drupal-site' "$PROJECT_DIR/"* /tmp/pantheon_advanced_page_cache
sed -e 's#"name": "drupal/pantheon_advanced_page_cache"#"version": "dev-circle", "name": "local-path/pantheon_advanced_page_cache"#' "$PROJECT_DIR/composer.json" > /tmp/pantheon_advanced_page_cache/composer.json
mkdir -p path-repositories/pantheon_advanced_page_cache
rsync -av --exclude='vendor' --exclude='drupal-site' "$PROJECT_DIR/"* path-repositories/pantheon_advanced_page_cache
sed -e 's#"name": "drupal/pantheon_advanced_page_cache"#"version": "dev-circle", "name": "local-path/pantheon_advanced_page_cache"#' "$PROJECT_DIR/composer.json" > path-repositories/pantheon_advanced_page_cache/composer.json

# Require via Composer, in case we need to require any dependencies in the future & etc.
composer -- config repositories.papc path /tmp/pantheon_advanced_page_cache
composer -- config repositories.papc path path-repositories/pantheon_advanced_page_cache
composer -- require "local-path/pantheon_advanced_page_cache: dev-circle"

# Make a git commit
Expand Down

0 comments on commit 6545e1d

Please sign in to comment.