A version targeted by a dependency (e.g., in a require).
- none : InputVer
No version was specified.
- git
(rev : GitRev)
: InputVer
A Git revision to resolve to a commit hash.
This is specified by an
@ git <rev>clause in Lean orrev = <rev>field in TOML. - ver
(ver : VerRange)
: InputVer
A semantic version range of acceptable versions.
This is specified by an
@ <ver>clause in Lean orversion = <ver>field in TOML.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
- Lake.instReprInputVer.repr Lake.InputVer.none prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lake.InputVer.none")).group prec✝
Instances For
Equations
- Lake.instReprInputVer = { reprPrec := Lake.instReprInputVer.repr }
The source of a Dependency.
That is, where Lake should look to materialize the dependency.
- path (dir : System.FilePath) : DependencySrc
- git (url : String) (rev : Option GitRev) (subDir : Option System.FilePath) : DependencySrc
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lake.instReprDependencySrc = { reprPrec := Lake.instReprDependencySrc.repr }
A Dependency of a package.
It specifies a package which another package depends on.
This encodes the information contained in the require DSL syntax.
- name : Lean.Name
The package name of the dependency. This name must match the one declared in its configuration file, as that name is used to index its target data types. For this reason, the package name must also be unique across packages in the dependency graph.
- scope : String
An additional qualifier used to distinguish packages of the same name in a Lake registry. On Reservoir, this is the package owner.
- version : InputVer
The target version of the dependency.
- src? : Option DependencySrc
The source of a dependency. If none, looks up the dependency in the default registry (e.g., Reservoir). See the documentation of
DependencySrcfor supported sources. - opts : Lean.NameMap String
Arguments to pass to the dependency's package configuration.
Instances For
Equations
Equations
- Lake.instTypeNameDependency = Lake.inst✝
Returns the directory name used for storing the materialized dependency.
Instances For
Returns the name of the dependency formatted for printing.
Equations
- dep.prettyName = dep.name.toString false
Instances For
Returns the name of the dependency formatted for lookup on Reservoir.
Equations
- dep.reservoirName = dep.name.toString false
Instances For
Returns the full name of the dependency (i.e., <scope>/<name>) formatted for printing.
Instances For
Returns a printable string which uniquely identifies this dependency for the resolver.
Equations
- One or more equations did not get rendered due to their size.