HepLean Documentation

Lake.Load.Config

Context for loading a Lake configuration.

  • lakeEnv : Lake.Env

    The Lake environment of the load process.

  • lakeArgs? : Option (Array String)

    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.

  • 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).

  • 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. If true 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
    @[inline]

    The full path to loaded package's directory.

    Equations
    • cfg.pkgDir = cfg.wsDir / cfg.relPkgDir
    Instances For
      @[inline]

      The full path to loaded package's configuration file.

      Equations
      • cfg.configFile = cfg.pkgDir / cfg.relConfigFile
      Instances For
        @[inline]

        The package's Lake directory (for Lake temporary files).

        Equations
        Instances For