From 325af1f24e7d0fcd68e48f635138dbc3e09bb862 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 21 Aug 2019 19:26:40 -0600 Subject: [PATCH] Workaround for Crystal issue Fix for GitHub issue 1 - https://github.com/icy-arctic-fox/spectator/issues/1 Works around Crystal issue 7060 (6920) - https://github.com/crystal-lang/crystal/issues/7060 This should be reverted after it is fixed in the Crystal compiler. --- src/spectator/includes.cr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spectator/includes.cr b/src/spectator/includes.cr index bc97463..9861c89 100644 --- a/src/spectator/includes.cr +++ b/src/spectator/includes.cr @@ -4,6 +4,12 @@ # Including all files with a wildcard would accidentally enable should-syntax. # Unfortunately, that leads to the existence of this file to include everything but that file. +# FIXME: Temporary (hopefully) require statement to workaround Crystal issue #7060. +# https://github.com/crystal-lang/crystal/issues/7060 +# The primary issue seems to be around OpenSSL. +# By explicitly including it before Spectator functionality, we workaround the issue. +require "openssl" + # First the sub-modules. require "./internals" require "./dsl"