Skip to content

fix: create empty composer.json if it does not exist#160

Merged
rfay merged 1 commit into
ddev:mainfrom
codebymikey:20260521_codebymikey_missing_composer
May 21, 2026
Merged

fix: create empty composer.json if it does not exist#160
rfay merged 1 commit into
ddev:mainfrom
codebymikey:20260521_codebymikey_missing_composer

Conversation

@codebymikey
Copy link
Copy Markdown
Collaborator

Check for existence of composer.json before creating it.

The Issue #159

How This PR Solves The Issue

Creates the composer.json file if it does not exist.

Manual Testing Instructions

Attempt to create an issue fork for https://www.drupal.org/project/config_update/issues/3174327

Automated Testing Overview

N/A

Related Issue Link(s)

Release/Deployment Notes

Check for existence of composer.json before creating it.
Copy link
Copy Markdown
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a great idea to me.

Could you say a little bit about how often there's no composer.json in a Drupal contrib project?

@rfay
Copy link
Copy Markdown
Member

rfay commented May 21, 2026

Re-running tests. Failure seems to have been upgraded sysbox/docker

@rfay
Copy link
Copy Markdown
Member

rfay commented May 21, 2026

I guess the tests are not set up to be useful on forked PRs. I've granted you privileges to create a PR on ddev/coder-ddev, could you push the branch there and recreate the PR?

Thanks!

@rfay rfay merged commit 0c8a49d into ddev:main May 21, 2026
12 of 18 checks passed
@rfay
Copy link
Copy Markdown
Member

rfay commented May 21, 2026

Actually, I deployed it to staging-coder.ddev.com and manually tested, and it seemed fine, so I pulled it. Next time, PR on the upstream.

Please check https://staging-coder.ddev.com with this example and a normal test and if you think it's fine I'll deploy to coder.ddev.com

@codebymikey
Copy link
Copy Markdown
Collaborator Author

Just tested on https://staging-coder.ddev.com and was able to create a functional workspace as well. Thanks!

@rfay
Copy link
Copy Markdown
Member

rfay commented May 22, 2026

Thanks @codebymikey - I pushed it to coder.ddev.com, please check there to make sure that both this one and a normal contrib one with a composer.json work fine for you.

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.

2 participants