Exit code to return if --no-build
is set and a build is required.
Equations
Configuration options for a Lake build.
- oldMode : Bool
Use modification times for trace checking.
- trustHash : Bool
Whether to trust
.hash
files. - noBuild : Bool
Early exit if a target has to be rebuilt.
- verbosity : Verbosity
Verbosity level (
-q
,-v
, or neither). - failLv : LogLevel
Fail the top-level build if entries of at least this level have been logged.
Unlike some build systems, this does NOT convert such log entries to errors, and it does not abort jobs when warnings are logged (i.e., dependent jobs will still continue unimpeded).
- outLv : LogLevel
The minimum log level for an log entry to be reported.
- out : OutStream
The stream to which Lake reports build progress. By default, Lake uses
stderr
. - ansiMode : AnsiMode
Whether to use ANSI escape codes in build output.
Whether the build should show progress information.
Verbosity.quiet
hides progress and, for a noBuild
,
Verbosity.verbose
shows progress.
Information on what this job did.
- unknown : JobAction
No information about this job's action is available.
- replay : JobAction
Tried to replay a cached build action (set by
buildFileUnlessUpToDate
) - fetch : JobAction
Tried to fetch a build from a store (can be set by
buildUnlessUpToDate?
) - build : JobAction
Tried to perform a build action (set by
buildUnlessUpToDate?
)
Equations
- Lake.instInhabitedJobAction = { default := Lake.JobAction.unknown }
Equations
- Lake.instReprJobAction = { reprPrec := Lake.reprJobAction✝ }
Equations
- Lake.instDecidableEqJobAction x✝ y✝ = if h : x✝.toCtorIdx = y✝.toCtorIdx then isTrue ⋯ else isFalse ⋯
Equations
- Lake.instOrdJobAction = { compare := Lake.ordJobAction✝ }
Mutable state of a Lake job.
- log : Log
The job's log.
- action : JobAction
Tracks whether this job performed any significant build action.
- trace : BuildTrace
Current trace of a build job.
Equations
- Lake.instInhabitedJobState = { default := { log := default, action := default, trace := default } }
The result of a Lake job.
Equations
A Lake job.
- task : JobTask α
The Lean
Task
object for the job. - caption : String
A caption for the job in Lake's build monitor. Will be formatted like
✔ [3/5] Ran <caption>
. - optional : Bool
Whether this job failing should cause the build to fail.
Instances For
- Lake.Job.instFunctor
- Lake.Job.instInhabited
- Lake.Job.instPure
- Lake.instCoeOutJobOpaqueJob
- Lake.instFamilyDefNameModuleDataMkStr1JobDynlib
- Lake.instFamilyDefNameModuleDataMkStr1JobFilePath
- Lake.instFamilyDefNameModuleDataMkStr1JobFilePath_1
- Lake.instFamilyDefNameModuleDataMkStr1JobFilePath_2
- Lake.instFamilyDefNameModuleDataMkStr1JobFilePath_3
- Lake.instFamilyDefNameModuleDataMkStr1JobFilePath_4
- Lake.instFamilyDefNameModuleDataMkStr1JobProdSearchPathArrayFilePath
- Lake.instFamilyDefNameModuleDataMkStr1JobUnit
- Lake.instFamilyDefNameModuleDataMkStr2JobFilePath
- Lake.instFamilyDefNameModuleDataMkStr2JobFilePath_1
- Lake.instFamilyDefNameModuleDataMkStr2JobFilePath_2
- Lake.instFamilyDefNameModuleDataMkStr2JobFilePath_3
- Lake.instFamilyDefNameModuleDataMkStr3JobFilePath
- Lake.instFamilyDefNameModuleDataMkStr3JobFilePath_1
- Lake.instFamilyDefNamePackageDataMkStr1JobBool
- Lake.instFamilyDefNamePackageDataMkStr1JobBool_1
- Lake.instFamilyDefNamePackageDataMkStr1JobBool_2
- Lake.instFamilyDefNamePackageDataMkStr1JobUnit
- Lake.instFamilyDefNamePackageDataMkStr1JobUnit_1
- Lake.instFamilyDefNamePackageDataMkStr1JobUnit_2
- Lake.instFamilyDefNamePackageDataMkStr1JobUnit_3
- Lake.instFamilyDefNameTargetDataHAppendMkStr1JobFilePath
- Lake.instFamilyDefNameTargetDataHAppendMkStr1JobFilePath_1
- Lake.instFamilyDefNameTargetDataHAppendMkStr1JobUnit
- Lake.instFamilyDefNameTargetDataHAppendMkStr1JobUnit_1
- Lake.instFamilyDefNameTargetDataHAppendMkStr1MkStr2JobFilePath
- Lake.instFamilyDefNameTargetDataMkStr1JobFilePath
- Lake.instFamilyDefNameTargetDataMkStr2JobDynlib
- Lake.instFamilyDefNameTargetDataMkStr2JobFilePath
- Lake.instFamilyDefNameTargetDataMkStr2JobFilePath_1
- Lake.instInhabitedJob
Equations
- Lake.instInhabitedJob = { default := { task := default, caption := default, optional := default } }
A Lake job with an opaque value in Type
.
Equations
Instances For
A Lake context with a build configuration and additional build data.
- leanTrace : BuildTrace
A monad equipped with a Lake build context.
Equations
Equations
Equations
- Lake.getLeanTrace = (fun (x : Lake.BuildContext) => x.leanTrace) <$> Lake.getBuildContext
Equations
- Lake.getBuildConfig = (fun (x : Lake.BuildContext) => x.toBuildConfig) <$> Lake.getBuildContext
Equations
- Lake.getIsOldMode = (fun (x : Lake.BuildConfig) => x.oldMode) <$> Lake.getBuildConfig
Equations
- Lake.getTrustHash = (fun (x : Lake.BuildConfig) => x.trustHash) <$> Lake.getBuildConfig
Equations
- Lake.getNoBuild = (fun (x : Lake.BuildConfig) => x.noBuild) <$> Lake.getBuildConfig
Equations
- Lake.getVerbosity = (fun (x : Lake.BuildConfig) => x.verbosity) <$> Lake.getBuildConfig
Equations
- Lake.getIsVerbose = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.verbose) <$> Lake.getVerbosity
Equations
- Lake.getIsQuiet = (fun (x : Lake.Verbosity) => x == Lake.Verbosity.quiet) <$> Lake.getVerbosity
The internal core monad of Lake builds. Not intended for user use.
Equations
Logs a build step with message
.
Deprecated: Build steps are now managed by a top-level build monitor.
As a result, this no longer functions the way it used to. It now just logs the
message
via logVerbose
.
Equations
- Lake.logStep message = Lake.logVerbose message