Package Registries #
This module contains definitions for fetching Lake package information from a online registry (e.g., Reservoir).
Package source information from a Lake registry (e.g., Reservoir). Only contains the subset of fields useful to Lake.
- git (data : JsonObject) (url : String) (githubUrl? defaultBranch? : Option String) (subDir? : Option System.FilePath) : RegistrySrc
- other (data : JsonObject) : RegistrySrc
Instances For
Equations
Equations
- (Lake.RegistrySrc.git data url githubUrl? defaultBranch? subDir?).isGit = true
- (Lake.RegistrySrc.other data).isGit = false
Instances For
Equations
- (Lake.RegistrySrc.git data url githubUrl? defaultBranch? subDir?).data = data
- (Lake.RegistrySrc.other data).data = data
Instances For
Equations
- src.toJson = Lean.Json.obj src.data
Instances For
Equations
- Lake.RegistrySrc.instToJson = { toJson := Lake.RegistrySrc.toJson }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.RegistrySrc.instFromJson = { fromJson? := Lake.RegistrySrc.fromJson? }
Package metadata from a Lake registry (e.g., Reservoir). Only contains the subset of fields useful to Lake.
- name : String
- fullName : String
- sources : Array RegistrySrc
- data : Lean.Json
Instances For
Equations
Instances For
Equations
Equations
- pkg.gitSrc? = Array.find? (fun (x : Lake.RegistrySrc) => x.isGit) pkg.sources
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.RegistryPkg.instFromJson = { fromJson? := Lake.RegistryPkg.fromJson? }
A Reservoir API response object.
- data {α : Type u} (a : α) : ReservoirResp α
- error {α : Type u} (status : Nat) (message : String) : ReservoirResp α
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instFromJsonReservoirResp = { fromJson? := Lake.ReservoirResp.fromJson? }
Equations
- Lake.Reservoir.pkgApiUrl lakeEnv owner pkg = toString lakeEnv.reservoirApiUrl ++ toString "/packages/" ++ toString (Lake.uriEncode owner) ++ toString "/" ++ toString (Lake.uriEncode pkg)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Version metadata from a Lake registry (e.g., Reservoir). Only contains the subset of fields useful to Lake.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instFromJsonRegistryVer = { fromJson? := Lake.RegistryVer.fromJson? }
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.