Documentation

Lake.Config.Artifact

@[inline]
def Lake.artifactPath (contentHash : Hash) (ext : String := "art") :

Returns the relative file path used for an artifact in the Lake cache (i.e., {hash}.{ext}).

Equations
Instances For

    The information needed to identify a single artifact within the Lake cache.

    • hash : Hash

      The artifact's content hash.

    • ext : String

      The artifact's file extension.

    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[inline]
        def Lake.artifactWithExt (contentHash : Hash) (ext : String := "art") :

        A content-hashed artifact that should have the file extension ext.

        Many applications care about the extension of a file (e.g., use it determine what kind of operation to perform), so the content hash alone may not be sufficient to produce a useable artifact for consumers.

        Equations
        Instances For
          @[inline]

          Returns the relative file path used for the output's artifact in the Lake cache (c.f. artifactPath).

          Equations
          Instances For

            Parse an output's relative file path into an ArtifactDescr.

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

                A file with a known content hash.

                • The preferred path to the artifact on the file system.

                • name : String

                  The artifact's. This is used, for example, as a caption in traces.

                • mtime : MTime

                  The artifact's modification time (or 0 if unknown).

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

                    Sets the name of the artifact.

                    Equations
                    Instances For
                      @[inline]

                      Sets the name and path of the artifact using the file outside the Lake artifact cache.

                      Equations
                      Instances For

                        The build trace formed from this single artifact.

                        Equations
                        Instances For