Skip to content

Don't require relative entrypoint file path to begin with ./ #282

@ZimbiX

Description

@ZimbiX

When specifying the entrypoint file path without a ./, it doesn't work:

➜ bundle exec que config/jobs_environment.rb  
Could not load file 'config/jobs_environment.rb'

vs:

➜ bundle exec que ./config/jobs_environment.rb
Que waiting for jobs...

This is confusing, and it took us digging through the source code to figure out that ./ was required, since it's passing the unmodified path through to ruby's native require method:

require file

We have filed a related issue for revealing the true error when loading this file: #280

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions