xcode template's rbenv environment is broken
anders-nylander opened this issue · comments
anders-nylander commented
macos-image-templates/templates/xcode.pkr.hcl
Line 105 in bf9f6a6
At this point in the script, the gem
command executes in the user folder, e.g. /Users/admin/.rbenv/shims/gem
. But when these commands are run at this point in the script with the "sudo" prefix, we end up with a bunch of gems with mixed ownership inside the ~/.rbenv
folder, which causes issues later down the line.
However, the sudo
prefix isn't necessary when changing stuff in ~/.rbenv
.