Skip to content

Conversation

@johnbillion
Copy link
Contributor

Description

When installing CMB2 via Composer, the composer.json file gets excluded from the package. While this file isn't strictly needed, it helps if this file is in place when you're checking dependencies in your project.

In addition, the composer.lock file doesn't get excluded, which is weird.

Motivation and Context

After installing CMB2 via Composer, I wanted to quickly check its dependencies but was unable to do so.

Risk Level

Low

Testing procedure

  1. Run mkdir composer-export && git archive HEAD | tar -xC composer-export
  2. Verify that composer.json is present in the composer-export directory

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

@slaFFik
Copy link
Member

slaFFik commented Feb 6, 2019

composer.lock was added recently to the repo, and not added to .gitattributes to preserve it after git archive - that's why it's there, and composer.json is not.

@slaFFik slaFFik requested a review from jtsternberg February 6, 2019 12:12
@slaFFik slaFFik added this to the v2.7.0 milestone Feb 6, 2019
@jtsternberg
Copy link
Member

I’d like to switch this as you mention and instead exclude the lock file. If you’re able to add that, great. If not, I can when I get to this.

@jtsternberg jtsternberg merged commit 51737ed into CMB2:develop Feb 6, 2019
@jtsternberg
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants