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

foreman not working with thor update #688

Open
keyranova opened this issue Aug 23, 2017 · 5 comments
Open

foreman not working with thor update #688

keyranova opened this issue Aug 23, 2017 · 5 comments

Comments

@keyranova
Copy link

Since foreman is set up to work with thor 0.19.x, it won't work by default on a new rails install until this is updated.

https://github.com/ddollar/foreman/blob/master/foreman.gemspec#L20

@keyranova
Copy link
Author

keyranova commented Aug 23, 2017

Just tried it out myself and all tests pass with the newest version of thor:
https://github.com/kurtnovack/foreman/tree/thor-version

@henrik
Copy link

henrik commented Sep 1, 2017

thor 0.20.0 also has a bugfix that's been a long time coming (rails/thor#538 (comment)); currently foreman is preventing that upgrade. (So we're still stuck on a pre-bug version of thor.)

@ddollar
Copy link
Owner

ddollar commented Sep 1, 2017

If you take foreman out of your Gemfile as the README suggests you won't have dependency resolution problems. I suggest installing it as a system-level tool (gem install foreman) rather than as a code-level dependency of your app.

@eadz
Copy link

eadz commented Nov 24, 2017

@ddollar the issue is that thor has a bug in version 0.19.4, which is fixed in thor 0.20.0.
If you try and run system installed foreman with only system install thor v 0.20.0 foreman won't start.

This is because the gem dependency on thor is '~> 0.19.1'.

So as the poster was saying, if you can't use thor v0.19.1 ( even as a dependency as foreman ), then you're out of luck. If thor v0.20 works with foreman, then it would be great to change the dependency to allow it.

@perlun
Copy link

perlun commented Jun 19, 2018

@eadz I was under the same belief as you, but after reading the feedback from @ddollar in #678 I am kind of understanding his position.

That is: if you install foreman by doing gem install foreman instead of trying to get it into your Gemfile, it will always work. Regardless of whether your project uses thor or not, or even a different version. I tried locally, by doing gem install thor (to get a conflicting, newer version) but to my surprise, running foreman still works.

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

5 participants