Open akostadinov opened 1 year ago
"cURL" https://learning.postman.com/docs/getting-started/importing-and-exporting-data/#:~:text=can%20also%20paste-,cURL,-commands%20into%20a paradiselife813@gmail.com
@Paradiselife1984 , sorry, I don't understand what to do with that link.
Hello @akostadinov ! Thanks to your detailed "reproducer" I was able to reproduce your problem. But I'm not sure there is anything wrong on Bundler side. Do you know why ::Bundler.reset!
is called? It resets all already loaded specs in RubyGems and that is the reason for your failure.
Since there was no further feedback here, I will close this issue. Feel free to reopen or comment more if still interested.
@simi , @deivid-rodriguez , missed this somehow. license_finder
I assume tries to remove anything pre-xisting so it is able to get only data for the inspected project. i.e. tries to make sure there is no stale data before starting.
What would be a proper way to do so if not by resetting?
I didn't look into this properly, just realized that there had been no further feedback. I'll reopen then.
JFYI removing bundle config
commands from the build script (so bundler config is not created) can be a workaround for this problem (see this if statement)
Describe the problem as clearly as you can
Hi, I'm not completely sure that I'm doing the right thing. I'm hitting an issue with license_finder which boiled down to a different behavior after Bundler was reset as part of license_finder logic.
So after the reset, Bundler can't find native gems anymore when PLATFORM in
Gemfile.lock
isruby
. While it could find them prior.Now I'm not sure whether license_finder does the right thing here. If there is a better way to do that, please advise!
See below for a minimal reproducer.
Did you try upgrading rubygems & bundler?
yes
Post steps to reproduce the problem
I crafted a minimal project to easily reproduce the issue with simple copy/paste steps in the readme: https://github.com/akostadinov/bundler-native-platform-issue
What were you expecting to happen?
I expect that Bundler will behave the same after reset as it behaved before reset.
What actually happened?
Could not find gem, see error above.
If not included with the output of your command, run
bundle env
and paste the output belowEnvironment
Bundler Build Metadata
Bundler settings
Gemfile
Gemfile
Gemfile.lock