Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DT-1016: BLT 10.x tests broken. #3938

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Conversation

danepowell
Copy link
Contributor

@danepowell danepowell commented Dec 2, 2019

BLT's internal tests mirror subtree-splits/blt-require-dev to /tmp/blt-require-dev and then add it as a Composer local path repository.

The problem is that /tmp/blt-require-dev has no specific version or Git history, so Composer interprets its version as dev-master. When you have a newer or more stable version (such as the recently-released 11.0.0-alpha1) Composer might use that instead of the local version, breaking tests.

Incidentally, it's pretty frustrating and confusing how Composer handles this. I don't know why it suddenly decided to use the new release instead of the local version. composer why-not acquia/blt-require-dev:dev-master reveals There is no installed package depending on "acquia/blt-require-dev" in versions not matching dev-master, which I think is Composer's way of saying "Oh yeah I'd be happy to install the local version for you", and yet... it doesn't. 🤷‍♂️

Additionally, it appears to be "sticky"... if you do install the local version using dev-master as the version constraint, and then change the constraint back to *@dev and run composer update, Composer will keep the local version... even though it would get the remote package in a fresh-install scenario with the same composer.json.

@danepowell danepowell merged commit 7b94d18 into acquia:10.x Dec 4, 2019
danepowell added a commit that referenced this pull request Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants