Refactor bundler settings to use config rs#642
Conversation
|
I believe the ENV should always override local, and local should always override global. I will wait to hear from @deivid-rodriguez to know if I am right, though. 😅 |
|
You are right, but yes, let's wait for a review of david! |
|
@a-chacon It's a good question. In my opinion, the precedence that makes the most sense is indeed To try to clarify how
|
|
Other comment where I think this differs from my initial implementation is that I intentionally tried to make this "best effort" only and never fail if we can't read Bundler settings for whatever reason, just ignore them. We should definitely be debug-logging any failures, but I'm not 100% sure if we should fail if errors happen, since after all, it's not really required for |
d810d8d to
e0c00ac
Compare
|
@deivid-rodriguez I get it. I think this accomplishes the logic now. With You didn't mention the Also, I added a log and load default if something fails inside the bundler settings. Well let me know any comment on it. |
Yes, because that means we end up setting GEM_HOME to the default path 👍
True, I forgot that one. That's essentially an special value for
Cool, I'll review this later today, thank you so much! |
deivid-rodriguez
left a comment
There was a problem hiding this comment.
Looking great, just a small comment. I did notice #646 while reviewing, but not related to this PR. Needs a rebase though!
53bd2f8 to
2c6e292
Compare
2c6e292 to
0e5c4b5
Compare
deivid-rodriguez
left a comment
There was a problem hiding this comment.
Thank you @a-chacon! Just did some trivial squashing of dummy review commits and I'm now merging this 💪
@deivid-rodriguez give me this idea of refactor bundler settings to use
config-rsjust likerv-settingsis doing. I think the code is clearer now.I just have one question about the precedence, now it is clear:
But before were a logic that confuse me about
use_deploymentandInstallPathstruct. I am not so sure about accomplishing exactly the same logic. But I take care about all specs were working just like before.