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.
Instances For
Instances For
The (unscoped) name of the package as it appears in Reservoir URLs (before URI-encoding).
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.
Instances For
- fn : PostUpdateFn pkgName
Instances For
Returns whether this package is root package of the workspace.
Instances For
For internal use. Whether this package is Lean itself.
Instances For
The identifier passed to Lean to disambiguate the package's native symbols.
Instances For
The full path to the package's Lake directory (i.e, dir joined with relLakeDir).
Instances For
The path for storing the package's remote dependencies relative to dir (i.e., packagesDir).
Instances For
The path to the package's JSON manifest of remote dependencies.
Instances For
The path where Lake stores the package's barrel (downloaded from Reservoir).
Instances For
The package's moreServerOptions configuration appended to its leanOptions configuration.
Instances For
Where static libraries for the package are located.
The package's buildDir joined with its nativeLibDir configuration.
Instances For
The directory within the Lake cache were package-scoped files are stored.
Instances For
Try to find a target configuration in the package with the given name.
Instances For
Whether the given module is considered local to the package.
Instances For
Whether the given module is in the package (i.e., can build it).
Instances For
Remove the package's build outputs (i.e., delete its build directory).