-
Notifications
You must be signed in to change notification settings - Fork 14
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
Builds broken on github, fails at drupal:composer:production step #722
Comments
@tess-ten7 if the step is changed to this does it fail?
|
@justafish From what I can tell, no. I also ran into this locally on DDEV which allowed me a moment to poke at it more carefully. It's apparently a path issue with the task command:
Apparently it's trying to run composer from I also found that you can modify the Taskfile.yml in the project replacing the |
Ooo, I just had a related discussion to this in the ddev queue:
Is there a reason your project has to require composer? It's typically only needed for libraries that are using the composer API and can cause problems. This also came up in relation to project browser: https://www.drupal.org/project/drupal/issues/3243899 My guess is if you remove the dependency on composer/composer everything will clear itself up! |
About that...
|
🤔 then how do you have composer in |
To clarify: The only time I've seen errors like the above is when composer is a project dependency, and composer is getting upgraded so the classes and files are unexpectedly missing in vendor/bin. |
I'm not sure either. The thing is, the failure occurs because something is expecting there to be a composer binary under vendor/bin, but it's not there because we don't touch the composer binary at all. |
Since these all run in ddev, you should be able to walk through it by hand locally. Best to do with a fresh checkout or an aggressive I suppose you could also add a whole bunch of Otherwise, you could try something like https://github.com/mxschmitt/action-tmate and then manually run each step in the workflow so you can inspect things. |
Starting this week, multiple sites no longer build on Github. The failure occurs when we call
ddev task build
, which in turn, callsdrupal:composer:production
. This step fails with the following consistent signature:Our
build
task is fairly simple:If we edit the workflow file and replace this:
with
the build completes without issue or other changes to the repository. This is curious, because we lifted that composer command whole cloth from
vendor/lullabot/drainpipe/tasks/drupal.yml
which in the repository(s) was:The text was updated successfully, but these errors were encountered: