Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZimbiX opened this issue Mar 26, 2020 · 0 comments
Open

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

ZimbiX opened this issue Mar 26, 2020 · 0 comments

Comments

@ZimbiX
Copy link
Member

ZimbiX commented Mar 26, 2020

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

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

No branches or pull requests

1 participant