From ad93047dff9b498e9e115a9f96bee0f5d9438f82 Mon Sep 17 00:00:00 2001 From: "metabase-bot[bot]" <109303359+metabase-bot[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:12:53 +0000 Subject: [PATCH] Windows doesn't know what a UnixPath is: use Path (#40384) (#40404) Co-authored-by: bryan <bryan.maass@gmail.com> --- enterprise/backend/src/metabase_enterprise/audit_db.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enterprise/backend/src/metabase_enterprise/audit_db.clj b/enterprise/backend/src/metabase_enterprise/audit_db.clj index 61c7e9d28c9..d0edbb3d7d7 100644 --- a/enterprise/backend/src/metabase_enterprise/audit_db.clj +++ b/enterprise/backend/src/metabase_enterprise/audit_db.clj @@ -19,7 +19,7 @@ [toucan2.core :as t2]) (:import (java.util.jar JarEntry JarFile) - (sun.nio.fs UnixPath))) + (java.nio.file Path))) (set! *warn-on-reflection* true) @@ -220,7 +220,7 @@ (defn analytics-checksum "Hashes the contents of all non-dir files in the `analytics-dir-resource`." [] - (->> ^UnixPath (instance-analytics-plugin-dir (plugins/plugins-dir)) + (->> ^Path (instance-analytics-plugin-dir (plugins/plugins-dir)) (.toFile) file-seq (remove fs/directory?) -- GitLab