Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find executable ejson_wrapper #9

Open
mattpatterson94 opened this issue Nov 11, 2020 · 0 comments
Open

can't find executable ejson_wrapper #9

mattpatterson94 opened this issue Nov 11, 2020 · 0 comments

Comments

@mattpatterson94
Copy link

mattpatterson94 commented Nov 11, 2020

I'm adding this issue for if people find they get caught up with bug and do not what the issue is.

ejson_wrapper includes a handy CLI tool for generating secret files, and decrypting secrets.

If you try to use the cli tool in a folder that has a Gemfile it tries to load in the Gemfile dependencies into ejson_wrapper. This causes version mismatches and fails to run.

example.

You have already activated aws-eventstream 1.1.0, but your Gemfile requires aws-eventstream 1.0.3. Prepending `bundle exec` to your command may solve this. (Gem::LoadError) 

or

Gem::Exception: can't find executable ejson_wrapper for gem ejson_wrapper. ejson_wrapper is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

There are workarounds at the moment, including:

  • Adding ejson_wrapper to the Gemfile of the folder you're in temporarily.
  • Going into a folder without a Gemfile and executing the cli tool.

Would be great if rather running Bundler.require in the gem it manually required its dependencies.

@mattpatterson94 mattpatterson94 changed the title Prepending bundle exec to your command may solve this. can't find executable ejson_wrapper Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant