chore: deprecate Lake.PackageConfig.manifestFile

This commit is contained in:
tydeu 2023-11-02 16:34:41 -04:00 committed by Mac Malone
parent 73540ecd48
commit 712d3c2292
3 changed files with 6 additions and 1 deletions

View file

@ -78,6 +78,8 @@ structure PackageConfig extends WorkspaceConfig, LeanConfig where
name : Name
/--
**This field is deprecated.**
The path of a package's manifest file, which stores the exact versions
of its resolved dependencies.

View file

@ -107,6 +107,10 @@ def Package.finalize (self : Package) (deps : Array Package) : LogIO Package :=
error s!"post-update hook was defined in `{decl.pkg}`, but was registered in `{self.name}`"
| .error e => error e
-- Deprecation warnings
unless self.config.manifestFile.isNone do
logWarning s!"{self.name}: package configuration option `manifestFile` is deprecated"
-- Fill in the Package
return {self with
opaqueDeps := deps.map (.mk ·)

View file

@ -154,7 +154,6 @@ Lake provides a large assortment of configuration options for packages.
### Layout
* `packagesDir`: The directory to which Lake should download remote dependencies. Defaults to `.lake/packages`.
* `manifestFile`: The path of a package's manifest file, which stores the exact versions of its resolved dependencies. Defaults to `lake-manifest.json`.
* `srcDir`: The directory containing the package's Lean source files. Defaults to the package's directory. (This will be passed to `lean` as the `-R` option.)
* `buildDir`: The directory to which Lake should output the package's build results. Defaults to `build`.
* `leanLibDir`: The build subdirectory to which Lake should output the package's binary Lean libraries (e.g., `.olean`, `.ilean` files). Defaults to `lib`.