aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
329 stars 187 forks source link

Add support for ruby 2.6 #214

Closed wissam closed 4 years ago

wissam commented 5 years ago

Installation fails for ruby 2.6.x Of course since only up to 2.5 is supported as seen in here:

def supported_ruby_versions ['2.5', '2.4', '2.3', '2.2', '2.1', '2.0'] end

mujz commented 5 years ago

Any status on this one please? I'm having this issue too.

charusat09 commented 5 years ago

Rails 6 already out and we want to upgrade our application using ruby 2.6 and rails 6. Waiting for this issue to be fixed. Any update on this?

wbotelhos commented 5 years ago

My workaround, to use Ruby 2.6.5, is replace the version number before execute the script.

Chef example:

execute 'codedeploy_download' do
  command 'wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/latest/install'
  cwd     '/tmp'
end

execute 'codedeploy_install' do
  command %(sed -i "s/'2.5/'2.6/" install && chmod +x ./install && ./install auto)
  cwd     '/tmp'
end
Tietew commented 4 years ago

ruby2.6 is available on amazon-linux-extras repositories. Any updates?

charusat09 commented 4 years ago

I think CodeDeploy supports new 2.7 as well after merging this PR: https://github.com/aws/aws-codedeploy-agent/pull/254/files. Thanks.

wissam commented 4 years ago

2.6 is now supported , closing the ticket