sunzi icon indicating copy to clipboard operation
sunzi copied to clipboard

Delete unexpected `end`

Open kyanny opened this issue 3 years ago • 1 comments

Hi @kenn, I found a small syntax error in the Vagrantfile example. Inner end shouldn't be there. ref: Inline Scripts

$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/focal64"
  config.vm.provision "shell",
    inline: "sudo echo 'root:vagrant' | /usr/sbin/chpasswd"
  end
end

$ vagrant up
Vagrant failed to initialize at a very early stage:

There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:

/Users/kyanny/workspaces/tmp-sunzi/Vagrantfile:9: syntax error, unexpected `end', expecting end-of-input

kyanny avatar Feb 24 '22 13:02 kyanny

CI failed due to the thor version dependency. https://github.com/kenn/sunzi/pull/46 fixes it. This branch needs to be rebased once https://github.com/kenn/sunzi/pull/46 has been merged.

kyanny avatar Feb 25 '22 12:02 kyanny