1
1
mirror of https://github.com/github/semantic.git synced 2025-01-08 16:39:47 +03:00

make examples work okay

This commit is contained in:
Patrick Thomson 2020-07-01 21:09:59 -04:00
parent 899f10bbbc
commit 13b3934bd8

View File

@ -1,4 +1,5 @@
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ImplicitParams #-} {-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
@ -29,7 +30,6 @@ import qualified System.Path as Path
import qualified System.Path.Directory as Path import qualified System.Path.Directory as Path
import qualified System.Process as Process import qualified System.Process as Process
import qualified System.Path.Fixture as Fixture import qualified System.Path.Fixture as Fixture
import qualified Bazel.Runfiles as Runfiles
import qualified Test.Tasty as Tasty import qualified Test.Tasty as Tasty
import qualified Test.Tasty.HUnit as HUnit import qualified Test.Tasty.HUnit as HUnit
@ -172,9 +172,11 @@ main :: IO ()
main = withOptions testOptions $ \ config logger statter -> do main = withOptions testOptions $ \ config logger statter -> do
-- void $ Process.system "script/clone-example-repos" -- void $ Process.system "script/clone-example-repos"
rf <- Runfiles.create #if BAZEL_BUILD
rf <- Fixture.create
let ?runfiles = rf let ?runfiles = rf
let ?project = Path.relDir "semantic" let ?project = Path.relDir "semantic"
#endif
let session = TaskSession config "-" False logger statter let session = TaskSession config "-" False logger statter