Build Info #
This module defines the Lake build info type and related utilities. Build info is what is the data passed to a Lake build function to facilitate the build.
Build Info & Keys #
Build Key Helper Constructors #
@[reducible, inline, deprecated Lake.Package.key (since := "2025-03-28")]
Equations
- self.buildKey = Lake.BuildKey.package self.name
Instances For
@[reducible, inline, deprecated Lake.BuildKey.facet (since := "2025-03-28")]
Equations
- Lake.Package.facetBuildKey facet self = self.key.facet facet
Instances For
@[reducible, inline]
Equations
- Lake.Package.targetKey target self = Lake.BuildKey.packageTarget self.name target
Instances For
@[reducible, inline, deprecated Lake.Package.targetKey (since := "2025-03-28")]
Equations
- Lake.Package.targetBuildKey target self = Lake.BuildKey.packageTarget self.name target
Instances For
Build Info to Key #
@[reducible]
The key that identifies the build in the Lake build store.
Equations
- (Lake.BuildInfo.target p t).key = Lake.Package.targetKey t p
- (Lake.BuildInfo.facet t kind data f).key = t.facet f
Instances For
Equations
- Lake.instToStringBuildInfo = { toString := fun (x : Lake.BuildInfo) => toString x.key }
@[instance 100]
instance
Lake.instFamilyDefBuildKeyBuildDataCustomTargetNameCustomData
{n t : Lean.Name}
{p : NPackage n}
:
FamilyDef BuildData (BuildKey.customTarget p.name t) (CustomData n t)
instance
Lake.instFamilyDefBuildKeyBuildDataKeyTargetOfFamilyOutNameCustomData
{n t : Lean.Name}
{α : Type}
{p : NPackage n}
[FamilyOut (CustomData n) t α]
:
FamilyDef BuildData (BuildInfo.target p.toPackage t).key α
instance
Lake.instFamilyDefBuildKeyBuildDataKeyTargetOfFamilyOutPackageTarget
{n t : Lean.Name}
{α : Type}
{p : NPackage n}
[FamilyOut BuildData (BuildKey.packageTarget n t) α]
:
FamilyDef BuildData (BuildInfo.target p.toPackage t).key α