Documentation

Lake.Build.Package

Package Facet Builds #

Build function definitions for a package's builtin facets.

Fetch the package's direct dependencies.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Compute a topological ordering of the package's transitive dependencies.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Tries to download the package's build cache (if configured).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Tries to download and unpack the package's cached build archive (e.g., from Reservoir or GitHub). Prints a warning on failure.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[deprecated Lake.Package.maybeFetchBuildCacheWithWarning (since := "2024-09-27")]
          Equations
          Instances For

            Build the extraDepTargets for the package. Also, if the package is a dependency, maybe fetch its build cache.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Compute the package's Reservoir barrel URL.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Compute the package's GitHub release URL.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Lake.Package.fetchBuildArchive (self : Package) (url : String) (archiveFile : System.FilePath) (headers : Array String := #[]) :

                  Tries to download and unpack a build archive for the package from a URL.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    @[reducible, inline, deprecated Lake.Package.optGitHubReleaseFacetConfig (since := "2024-09-27")]
                    Equations
                    Instances For
                      @[reducible, inline, deprecated Lake.Package.gitHubReleaseFacetConfig (since := "2024-09-27")]
                      Equations
                      Instances For
                        def Lake.Package.afterBuildCacheAsync {α : Type} (self : Package) (build : JobM (Job α)) :
                        FetchM (Job α)

                        Perform a build job after first checking for an (optional) cached build for the package (e.g., from Reservoir or GitHub).

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          @[deprecated Lake.Package.afterBuildCacheAsync (since := "2024-09-27")]
                          def Lake.Package.afterReleaseAsync {α : Type} (self : Package) (build : JobM (Job α)) :
                          FetchM (Job α)
                          Equations
                          Instances For
                            def Lake.Package.afterBuildCacheSync {α : Type} (self : Package) (build : JobM α) :
                            FetchM (Job α)

                            Perform a build after first checking for an (optional) cached build for the package (e.g., from Reservoir or GitHub).

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              @[deprecated Lake.Package.afterBuildCacheSync (since := "2024-09-27")]
                              def Lake.Package.afterReleaseSync {α : Type} (self : Package) (build : JobM α) :
                              FetchM (Job α)
                              Equations
                              Instances For

                                A package facet name to build function map that contains builders for the initial set of Lake package facets (e.g., extraDep).

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For