mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-07 17:42:46 -05:00
feat: show message for unsupported Crystal versions at compile time
This commit is contained in:
parent
d10f2a4802
commit
b8c7b59d31
@ -50,6 +50,15 @@ require "./invidious/routes/**"
|
|||||||
require "./invidious/jobs/base_job"
|
require "./invidious/jobs/base_job"
|
||||||
require "./invidious/jobs/*"
|
require "./invidious/jobs/*"
|
||||||
|
|
||||||
|
# Show a nice message for unsupported versions of the Crystal compiler,
|
||||||
|
# encouraging the user compiling Invidiou, to update it's Crystal compiler
|
||||||
|
# version.
|
||||||
|
{% if compare_versions(Crystal::VERSION, "1.12.0") < 0 %}
|
||||||
|
{{ raise "Crystal version 1.12.0 or newer is required to build Invidious, \
|
||||||
|
you currently have Crystal version #{Crystal::VERSION}, \
|
||||||
|
update it to a new version to be able to build Invidious." }}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
# Declare the base namespace for invidious
|
# Declare the base namespace for invidious
|
||||||
module Invidious
|
module Invidious
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user