Closed ozbillwang closed 6 years ago
Not sure the error is related or not. I only see this error when run it in ruby container.
/usr/local/bundle/gems/commander-4.4.3/lib/commander/user_interaction.rb:334: warning: constant ::Data is deprecated
I see the same error constant ::Data is deprecated
, also can show the container_definitions differences in container ruby
and ruby:slim
. So it is only the problem in container ruby:alpine
.
Seems like this was introduced by Ruby 2.5.0:
$ ruby -e "puts RUBY_VERSION; ::Data"
Output on Ruby 2.4.2
2.4.2
Output on Ruby 2.5.0
2.5.0
-e:1: warning: constant ::Data is deprecated
There is an open issue on the commander
gem.
@sds
Thanks.
Yes, I can confirm with container ruby:2.4-alpine
, I don't see the error ::Data is deprecated
, but the container_definitions
is still empty.
Anyway, I use ruby:slim
, works fine.
Run
landscape
in ruby container, and get error.Steps to duplicate the problem.
run
terraform plan |tee report
to generate the output filerun landscape in official
ruby:alpine
containerin
container_definitions:
part, there is empty.If I directly run
landscape < report
on my mac, I can show the differences.