Skip to content

Errno::ENOENT when requiring v0.10 locally - looks like missing config/options.yml. #1681

Description

@sleepingkingstudios

When v0.10.0 was released, my GitHub Actions workflow started failing. Previous builds were against v0.9.7 with the same configuration.

I'm able to reproduce the issue locally for herb-0.10.0-arm64-darwin as well:

% be rspec spec/features 

An error occurred while loading ./spec/features/files/file_generation_spec.rb.
Failure/Error: require 'herb'

Errno::ENOENT:
  No such file or directory @ rb_sysopen - /Users/robertsmith/.rbenv/versions/4.0.3/lib/ruby/gems/4.0.0/gems/herb-0.10.0-arm64-darwin/config/options.yml
# ./lib/cuprum/cli/commands/file/render_erb.rb:4:in '<top (required)>'
# ./lib/cuprum/cli/commands/file/new_command.rb:5:in '<top (required)>'
# ./spec/features/files/file_generation_spec.rb:5:in '<top (required)>'

Pinning the version to ~> 0.9.7 resolves the issue.

Happy to provide the GitHub actions log as well, but it's noisy (multiple entry points each with the same missing config/options.yml file, plus a bunch of duplicate constants from retrying the failed require).

Doing a little digging, it looks like it may be related to the changes to lib/herb/configuration.rb, specifically adding and loading the OPTIONS_PATH. I see that config/options.yml exists in the repository, but I don't see it listed in the gemspec spec.files manifest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfig

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions