Skip to content

require base_job before the other jobs #5194

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

Merged
merged 1 commit into from
May 18, 2025
Merged

Conversation

Fijxu
Copy link
Member

@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
@syeopite syeopite merged commit 0b23dd1 into iv-org:master May 18, 2025
8 checks passed
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