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

require base_job before the other jobs #5194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fijxu
Copy link
Contributor

@Fijxu Fijxu commented Feb 28, 2025

The crystal compiler seems to evaluate require in an alphabetical way, so if anyone in the future, wants to add another job and that job is above base_job.cr in alphabetical order, the compiler is going to fail with Error: undefined constant: Invidious::Jobs::BaseJob.

This doesn't fix anything, but it will prevent a future headache.

image

The crystal compiler seems to evaluate `require` in an alphabetical way,
so if anyone in the future, wants to add another job and that job is
above `base_job.cr` in alphabetical order, the compiler is going to fail
with `Error: undefined constant: Invidious::Jobs::BaseJob`.

This doesn't fix anything, but it will prevent a future headache.
@Fijxu Fijxu requested a review from a team as a code owner February 28, 2025 22:48
@Fijxu Fijxu requested review from unixfox and removed request for a team February 28, 2025 22:48
@syeopite syeopite added the ready label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants