-
Notifications
You must be signed in to change notification settings - Fork 70
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
Dotenv errors since Composer 1.7 #27
Comments
@MWDelaney I have the exact same issue, but in my development environment. I am quite new to Trellis, so I was hoping you could describe how you pin composer to 1.6.5 to fix this issue. Thank you. |
@HansCz here’s what I did: At the top of Replace this line: composer_keep_updated: true With this: composer_version: 1.6.5 That got me going for the day but it’s not a good fix for the problem. Hopefully there’s a simple fix somewhere. It almost seems like dotenv isn’t available by the time acf-pro-installer needs it? Could it be an order of operations thing? @PhilippBaschke any insight? I love this tool and I’d hate to have to find another solution! |
Got it working. Thanks @MWDelaney For anybody else as new to this as me who needs the steps spelled out in greater detail, add the following steps to @MWDelaney's instruction:
Explanation of removal/renaming: - name: Check if Composer is installed.
stat: "path={{ composer_path }}"
register: composer_bin
- name: Download Composer installer.
get_url:
url: https://getcomposer.org/installer
dest: /tmp/composer-installer.php
mode: 0755
when: not composer_bin.stat.exists
- name: Run Composer installer.
command: >
{{ php_executable }} composer-installer.php {% if composer_version != '' %} --version={{ composer_version }}{% endif %}
chdir=/tmp
when: not composer_bin.stat.exists
- name: Move Composer into globally-accessible location.
shell: >
mv /tmp/composer.phar {{ composer_path }}
creates={{ composer_path }}
when: not composer_bin.stat.exists
|
It looks like this related issue with wp-cli has been acknowledged by Composer and a fix is in progress. Hopefully that fix resolves this issue, too. |
Composer has been patched. Updating to v1.7.1 solves the issue for me. |
Hi,
Since Composer 1.7 was released earlier today, I can no longer install acf-pro-installer as part of a Trellis deployment; I get the following error(s) related to Dotenv/Dotenv:
This seems related to #21 and #17 but I haven't seen this problem specifically until the new version of Composer shipped this morning.
Pinning Composer to 1.6.5 on the server I'm deploying to resolves the issue for me, but this obviously isn't a great fix.
The text was updated successfully, but these errors were encountered: