Context for loading a Lake configuration.
- lakeEnv : Env
The Lake environment of the load process.
The CLI arguments Lake was run with. Used to perform a restart of Lake on a toolchain update. A value of
none
means that Lake is not restartable via the CLI.- wsDir : System.FilePath
The root directory of the Lake workspace.
- relPkgDir : System.FilePath
The directory of the loaded package (relative to the root).
- relConfigFile : System.FilePath
The package's Lake configuration file (relative to the package directory).
- packageOverrides : Array PackageEntry
Additional package overrides for this workspace load.
- lakeOpts : Lean.NameMap String
A set of key-value Lake configuration options (i.e.,
-K
settings). - leanOpts : Lean.Options
The Lean options with which to elaborate the configuration file.
- reconfigure : Bool
Whether Lake should re-elaborate configuration files instead of using cached OLeans.
- updateDeps : Bool
Whether to update dependencies when loading the workspace.
- updateToolchain : Bool
Whether to update the workspace's
lean-toolchain
when dependencies are updated. Iftrue
and a toolchain update occurs, Lake will need to be restarted. - scope : String
The package's scope (e.g., in Reservoir).
- remoteUrl : String
The URL to this package's Git remote (if any).
Instances For
The full path to loaded package's directory.
Instances For
The full path to loaded package's configuration file.
Equations
- cfg.configFile = cfg.pkgDir / cfg.relConfigFile
Instances For
The package's Lake directory (for Lake temporary files).
Equations
- cfg.lakeDir = cfg.pkgDir / Lake.defaultLakeDir