Computes the hash for the given workspace to persist in the summary. This should agree with the recomputed hash from the workspace summary if no changes are made to the package configuration.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
ImportGraph.Lake.WorkspaceSummary.recomputedInputHash
(leanGitHash : String)
(ws : WorkspaceSummary)
:
Recomputes the input hash for the WorkspaceSummary by re-hashing the files at the given
paths. Also mixes in the hash for the given lean version.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
ImportGraph.Lake.WorkspaceSummary.isUpToDate
(ws : WorkspaceSummary)
(wsDir? : Option System.FilePath := none)
:
Recomputes the hash of the data referred to by the paths in WorkspaceSummary and compares it
to the hash in WorkspaceSummary, using the current lean process's git hash.
If wsDir? is provided, ensures that the workspace directory provided in the summary is the same
as the given wsDir, else considers it not up-to-date.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
ImportGraph.Lake.WorkspaceSummary.ofWorkspace
(ws : Lake.Workspace)
(version : Option Lake.ToolchainVer)
(inputHash : Lake.Hash)
:
Summarize a loaded Lake.Workspace for transport over Json.
Equations
- One or more equations did not get rendered due to their size.