Skip to content

Commit

Permalink
Add global package directory to search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Feb 12, 2024
1 parent a77ef2d commit 0245a41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Server/Main.idr
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Server.Main

import Core.Context
import Core.Core
import Core.Directory
import Core.InitPrimitives
import Core.Metadata
import Core.UnifyState
Expand Down Expand Up @@ -182,6 +183,7 @@ startServer =
Just cg => setCG cg
Nothing => throw (InternalError ("Unknown code generator " ++ show e))
Nothing => pure ()
addPackageSearchPath !pkgGlobalDirectory
addPkgDir "prelude" anyBounds
addPkgDir "base" anyBounds
addDataDir (prefix_dir (dirs (options defs)) </> ("idris2-" ++ showVersion False Idris.Version.version) </> "support")
Expand Down

0 comments on commit 0245a41

Please sign in to comment.