Skip to content

Conversation

sfroehler
Copy link

Adds a bundle install run after the standard gem is added to the Gemfile. Without the bundle install suspenders runs into the following error when the gems are bundle into vendor/path by default:

"Could not find gem 'standard' in locally installed gems."

@sfroehler sfroehler closed this Mar 16, 2023
@sfroehler sfroehler reopened this Mar 16, 2023
@stevepolitodesign
Copy link
Contributor

Thank you for opening this. Could you outline the steps you took to reach this issue, as well as the version of Ruby and version of the suspenders gem you are using?

@sfroehler
Copy link
Author

Ruby version: 3.0.5
Suspenders version: 20230113.0

Here are the steps to reproduce:

  • Set BUNDLE_PATH: "vendor/bundle" in global bundle config (for example with bundle config --global path vendor/bundle)
  • Run suspender example_app
  • It fails with the following output:
    Could not find gem 'standard' in locally installed gems.
    Run `bundle install` to install missing gems.
More detailed output including the lines before the error.

...
Installing factory_bot 6.2.1
Fetching factory_bot_rails 6.2.0
Installing factory_bot_rails 6.2.0
Bundle complete! 36 Gemfile dependencies, 114 gems now installed.
Bundled gems are installed into `./vendor/bundle`
      create  spec/support/factory_bot.rb
      create  spec/factories.rb
      create  lib/tasks/dev.rake
    generate  suspenders:lint
       rails  generate suspenders:lint
warning: parser/current is loading parser/ruby30, which recognizes 3.0.6-compliant syntax, but you are running 3.0.5.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
      create  .hound.yml
     prepend  Rakefile
    generate  suspenders:jobs
       rails  generate suspenders:jobs
Could not find gem 'standard' in locally installed gems.
Run `bundle install` to install missing gems.

Hope this helps. If you need more details, please let me know.

Copy link
Contributor

@stevepolitodesign stevepolitodesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just ran this locally and everything looked good 👍

Adds a bundle install run after the standard gem is added to the
Gemfile. Without the bundle install suspenders runs into the following
error when the gems are bundle into vendor/path by default:

"Could not find gem 'standard' in locally installed gems."
@sfroehler sfroehler force-pushed the add-bundle-install-for-standard-gem branch from a64c760 to 3ac8a65 Compare November 5, 2023 16:46
@sfroehler sfroehler requested a review from thiagoa as a code owner November 5, 2023 16:46
@stevepolitodesign
Copy link
Contributor

Closed by #1135

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

Successfully merging this pull request may close these issues.

2 participants