"""Provides the repository macro to import Eigen."""

load("//third_party:repo.bzl", "tfrt_http_archive")

def repo(name):
    """Imports Eigen."""

    # Attention: tools parse and update these lines.
    EIGEN_COMMIT = "b3bea43a2da484d420e20c615cb5c9e3c04024e5"
    EIGEN_SHA256 = "ffc9e46125c12c84422a477deacb8d36e1939461146427d1f38d3ded112af1da"

    tfrt_http_archive(
        name = name,
        build_file = "//third_party/eigen:BUILD",
        sha256 = EIGEN_SHA256,
        strip_prefix = "eigen-{commit}".format(commit = EIGEN_COMMIT),
        urls = [
            "https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
            "https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
        ],
    )

@@ -219,134 +219,134 @@
  = %22
-b3bea43a2da484d420e20c615cb5c9e3c04024e5%22%0A    EIGEN_SHA256 = %22ffc9e46125c12c84422a477deacb8d36e1939461146427d1f38d3ded112af1da
+cfdb3ce3f018166a2cb0bfa8b18599c914bf447e%22%0A    EIGEN_SHA256 = %22c69a5a803d2ae2e4e15a5f6e76bd15f21b416c0d21d70336cca4f27b08a38cf5
 %22%0A%0A 

Update Eigen to: https://gitlab.com/libeigen/eigen/-/commit/5e89573e2a1018afa1e0ef6394f5f33851c3bc6f