A Lake package -- its location plus its configuration.
- wsIdx : Nat
The index of the package in the workspace. Used to disambiguate packages with the same name.
- baseName : Lean.Name
The assigned name of the package.
- keyName : Lean.Name
The package identifier used in target keys and configuration types.
- origName : Lean.Name
The name specified by the package.
- dir : System.FilePath
The absolute path to the package's directory.
- relDir : System.FilePath
The path to the package's directory relative to the workspace.
- config : PackageConfig self.keyName self.origName
The package's user-defined configuration.
- configFile : System.FilePath
The absolute path to the package's configuration file.
- relConfigFile : System.FilePath
The path to the package's configuration file (relative to
dir). - relManifestFile : System.FilePath
The path to the package's JSON manifest of remote dependencies (relative to
dir). - scope : String
The package's scope (e.g., in Reservoir).
- remoteUrl : String
The URL to this package's Git remote.
- depConfigs : Array Dependency
Dependency configurations for the package.
- targetDecls : Array (PConfigDecl self.keyName)
Target configurations in the order declared by the package.
- targetDeclMap : DNameMap (NConfigDecl self.keyName)
Name-declaration map of target configurations in the package.
The names of the package's targets to build by default (i.e., on a bare
lake buildof the package).- scripts : Lean.NameMap Script
Scripts for the package.
The names of the package's scripts run by default (i.e., on a bare
lake runof the package).- postUpdateHooks : Array (OpaquePostUpdateHook self.keyName)
Post-
lake updatehooks for the package. - buildArchive : String
The package's
buildArchive/buildArchive?configuration. - testDriver : String
The driver used for
lake testwhen this package is the workspace root. - lintDriver : String
The driver used for
lake lintwhen this package is the workspace root. Input-to-output(s) map for hashes of package artifacts. If
none, the artifact cache is disabled for the package.Input-to-output(s) map for hashes of package artifacts. If
none, the artifact cache is disabled for the package.
Instances For
Pretty prints the package's name. Used when outputting package names.
Equations
Instances For
Equations
Instances For
The (unscoped) name of the package as it appears in Reservoir URLs (before URI-encoding).
Equations
Instances For
A package with a name known at type-level.
- config : PackageConfig self.keyName self.origName
- targetDecls : Array (PConfigDecl self.keyName)
- targetDeclMap : DNameMap (NConfigDecl self.keyName)
- postUpdateHooks : Array (OpaquePostUpdateHook self.keyName)
Instances For
The type of a post-update hooks monad.
IO equipped with logging ability and information about the Lake configuration.
Equations
Instances For
- fn : PostUpdateFn pkgName
Instances For
Equations
Equations
Instances For
Equations
Equations
Equations
Returns whether this package is root package of the workspace.
Equations
Instances For
For internal use. Whether this package is Lean itself.
Equations
Instances For
The identifier passed to Lean to disambiguate the package's native symbols.
Equations
Instances For
The package version.
Equations
Instances For
The path to the package's Lake directory relative to dir (e.g., .lake).
Equations
Instances For
The full path to the package's Lake directory (i.e, dir joined with relLakeDir).
Equations
Instances For
The path for storing the package's remote dependencies relative to dir (i.e., packagesDir).
Equations
Instances For
The path to the package's JSON manifest of remote dependencies.
Equations
Instances For
Whether the package's has been configured with platformIndependent = true.
Equations
Instances For
The path where Lake stores the package's barrel (downloaded from Reservoir).
Equations
Instances For
The package's moreServerOptions configuration appended to its leanOptions configuration.
Equations
Instances For
Where static libraries for the package are located.
The package's buildDir joined with its nativeLibDir configuration.
Equations
Instances For
The directory within the Lake cache were package-scoped files are stored.
Equations
Instances For
Try to find a target configuration in the package with the given name.
Equations
Instances For
Whether the given module is considered local to the package.
Equations
Instances For
Whether the given module is in the package (i.e., can build it).
Equations
Instances For
Remove the package's build outputs (i.e., delete its build directory).