terraform icon indicating copy to clipboard operation
terraform copied to clipboard

ensure_gem("terraform") doesn't play well with Bundler

Open cespare opened this issue 12 years ago • 0 comments

In the Barkeep deploy, we use ensure_gem("terraform") before running bundle install. This breaks every time the version of Terraform bumps, because the version of terraform loaded won't match the version in the Gemfile.

Perhaps this will be fixed with a more reasonable terraform loading system (we load terraform from about 3 different places in the Barkeep configuration, sometimes from bundler, sometimes from the written-out DSL file, sometimes via ensure_gem). I think we need a better example terraform deployment than Barkeep.

I suspect that you never want to have ensure_gem("terraform") -- I think that you should either require the DSL file, or load it via Bundler.

cespare avatar Oct 25 '12 23:10 cespare