shiplane icon indicating copy to clipboard operation
shiplane copied to clipboard

bundle exec cap staging shiplane bombs with Psych >= 4

Open legacy370 opened this issue 1 year ago • 1 comments

Precheck

  • Do a quick search through the Github Issues track to determine if your bug might already be submitted

Environment

  • Ubuntu 20.04
  • Ruby [3.0.6]
  • Shiplane [0.2.28]

Current behavior

If the Psych gem is version 4 or above, bundle exec cap staging shiplane results in Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: true to Psych::load or Psych::safe_load.

Expected behavior

shiplane succeeds.

If line 142 of lib/shiplane/build.rb is changed to @docker_config ||= YAML.load(File.new(docker_compose_filepath), aliases: true) that overcomes the error.

legacy370 avatar Dec 21 '23 23:12 legacy370

If line 142 of lib/shiplane/build.rb is changed to @docker_config ||= YAML.load(File.new(docker_compose_filepath), aliases: true) that overcomes the error.

legacy370 avatar Dec 21 '23 23:12 legacy370