Returns the relative file path used for an artifact in the Lake cache (i.e., {hash}.{ext}).
Equations
Instances For
The information needed to identify a single artifact within the Lake cache.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instReprArtifactDescr = { reprPrec := Lake.instReprArtifactDescr.repr }
A content-hashed artifact that should have the file extension ext.
Many applications care about the extension of a file (e.g., use it determine what kind of operation to perform), so the content hash alone may not be sufficient to produce a useable artifact for consumers.
Equations
- Lake.artifactWithExt contentHash ext = { hash := contentHash, ext := ext }
Instances For
Returns the relative file path used for the output's artifact in the Lake cache (c.f. artifactPath).
Equations
- self.relPath = Lake.artifactPath self.hash self.ext
Instances For
Equations
- Lake.ArtifactDescr.instToString = { toString := fun (x : Lake.ArtifactDescr) => x.relPath.toString }
Equations
- Lake.ArtifactDescr.instToJson = { toJson := fun (x : Lake.ArtifactDescr) => Lean.toJson x.relPath }
Parse an output's relative file path into an ArtifactDescr.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.ArtifactDescr.instFromJson = { fromJson? := Lake.ArtifactDescr.fromJson? }
A file with a known content hash.
- path : System.FilePath
The preferred path to the artifact on the file system.
- name : String
The artifact's. This is used, for example, as a caption in traces.
- mtime : MTime
The artifact's modification time (or
0if unknown).
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instReprArtifact = { reprPrec := Lake.instReprArtifact.repr }