-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fetch composer binary from HTTPS-only #568
Conversation
I think this issue is urgent and it should be merged asap. I've checked your solution and it works. What do you think about adding |
Having the same issue. |
Confirmed, Please merge asap |
👍 |
3 similar comments
👍 |
👍 |
👍 |
Just in case one of you needs a hotfix, for us adding the following to our capfile worked: # symfony:composer:get
namespace :symfony do
namespace :composer do
desc "Gets composer and installs it"
task :get, :roles => :app, :except => { :no_release => true } do
install_options = ''
unless composer_version.empty?
install_options += " -- --version=#{composer_version}"
end
if use_composer_tmp
# Because we always install to temp location we assume that we download composer every time.
logger.debug "Downloading composer to #{$temp_destination}"
capifony_pretty_print "--> Downloading Composer to temp location"
run_locally "cd #{$temp_destination} && curl -sSL https://getcomposer.org/installer | #{php_bin}#{install_options}"
else
if !remote_file_exists?("#{latest_release}/composer.phar")
capifony_pretty_print "--> Downloading Composer"
run "#{try_sudo} sh -c 'cd #{latest_release} && curl -sSL https://getcomposer.org/installer | #{php_bin}#{install_options}'"
else
capifony_pretty_print "--> Updating Composer"
run "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} composer.phar self-update #{composer_version}'" \
end
end
capifony_puts_ok
end
end
end I don't really know ruby, so i might have made the world explode with that patch :-) |
👍 |
+1 for the |
Same issue +1 |
+1 My quick fix was installing composer globally on server and set up set |
👍 |
@hco I did the same but without |
👍 |
@everzet can you merge it plz ? |
@dupuchba +1 |
If you're able to modify the gems directly, I found the easiest hotfix was to run the command in @shakaran's PR in the location of capifony. If you want to find that location, I found running Command repeated here:
|
👍 |
I fixed the server config to allow static files access over http again so y'all can get back to work, but this definitely should be merged. |
Thank you @Seldaek. 👍 |
@Seldaek 👍 (between who has the credentials to merge? ) |
As already mentioned you can use composer globaly on the server: |
Ok ok, thanks for the fix. New release is on its way. |
Fetch composer binary from HTTPS-only
v2.8.5 is out! |
👍 nice :-) |
👍 |
cap symfony:composer:get fails to get composer file
Check composer/composer#3047
We need https only, so:
curl -sS https://getcomposer.org/installer | php
This pull request just simply add the -S param running this sed command: