From 4c80dbcc9b55cbbf2c0c0a43179c9673c80f51fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Sat, 4 May 2024 14:47:09 +0300 Subject: [PATCH] Revert "Try avoiding newlines when hashing nuon files" This reverts commit bb8b3c68030b8a980b5afb56847fc76450a07d30. --- nupm/utils/misc.nu | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nupm/utils/misc.nu b/nupm/utils/misc.nu index c0e3204..3f3e7be 100644 --- a/nupm/utils/misc.nu +++ b/nupm/utils/misc.nu @@ -43,13 +43,7 @@ export def hash-fn []: string -> string { # Compute a hash of file contents export def hash-file []: path -> string { - let p = $in - - if ($p | path parse).extension == "nuon" { - open $p | to nuon | hash-fn - } else { - open $p --raw | hash-fn - } + open --raw | hash-fn } # Extensions to the `url ...` commands