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}).

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
      @[implicit_reducible]
      @[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.

      Instances For
        @[inline]

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

        Instances For

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

          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
              @[implicit_reducible]
              @[implicit_reducible]
              @[inline]

              Sets the name of the artifact.

              Instances For
                @[inline]

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

                Instances For

                  The build trace formed from this single artifact.

                  Instances For