Requiring dev releases with Composer clones the repo, which is different than downloading a dev release archive

Created on 11 May 2021, over 3 years ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

Dev version of any contrib module also installs .git subdirectory when you install it through composer
The issue breaks automatic deployment scripts for several cloud providers like Pantheon and Acquia
[RuntimeException]
The .git directory is missing from web/modules/composer/eck, see https://getcomposer.org/commit-deps for more information

Steps to reproduce

composer require 'drupal/eck:1.x-dev@dev' will also download project .git directory.

Proposed resolution

.git directory should be excluded whenever a project is installed from https://packages.drupal.org/8
The tagged versions don't have .git subdirectory.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States khaldoon_masud

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024