35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
/-
|
|
Copyright (c) 2022 Mac Malone. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Mac Malone
|
|
-/
|
|
import Lean.Data.Name
|
|
import Lean.Data.Options
|
|
import Lake.Config.Env
|
|
import Lake.Util.Log
|
|
|
|
namespace Lake
|
|
open System Lean
|
|
|
|
/-- The default name of the Lake configuration file (i.e., `lakefile.lean`). -/
|
|
def defaultConfigFile : FilePath := "lakefile.lean"
|
|
|
|
/-- Context for loading a Lake configuration. -/
|
|
structure LoadConfig where
|
|
/-- The Lake environment of the load process. -/
|
|
env : Lake.Env
|
|
/-- The root directory of the loaded package (and its workspace). -/
|
|
rootDir : FilePath
|
|
/-- The Lean file with the package's Lake configuration (e.g., `lakefile.lean`) -/
|
|
configFile : FilePath := rootDir / defaultConfigFile
|
|
/-- A set of key-value Lake configuration options (i.e., `-K` settings). -/
|
|
configOpts : NameMap String := {}
|
|
/-- The Lean options with which to elaborate the configuration file. -/
|
|
leanOpts : Options := {}
|
|
/-- The verbosity setting for logging messages. -/
|
|
verbosity : Verbosity := .normal
|
|
/--
|
|
Whether to update dependencies during resolution
|
|
or fallback to the ones listed in the manifest.
|
|
-/
|
|
updateDeps : Bool := false
|