From 83f68aa6863e94ca25c89c2c59dc673c346af81e Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 22 Sep 2024 21:28:50 +0300 Subject: [PATCH] tests: remove dash.el manually to avoid problems w/ url-copy-file --- build.ninja | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.ninja b/build.ninja index 5b7716f..ad83b73 100644 --- a/build.ninja +++ b/build.ninja @@ -6,7 +6,11 @@ rule compile_file command = emacs -batch --eval "(setq byte-compile-error-on-warn t)" $args -f batch-byte-compile $in build dash.el: batch_emacs - args = --eval "(progn (require 'url) (url-copy-file \"https://raw.githubusercontent.com/magnars/dash.el/master/dash.el\" \"dash.el\"))" + # In the code below we remove dash.el manually, because when it's "dirty", + # url-copy-file won't overwrite it (it may ignore it but that's different). + args = --eval "(progn (require 'url)$ + (delete-file \"dash.el\")$ + (url-copy-file \"https://raw.githubusercontent.com/magnars/dash.el/master/dash.el\" \"dash.el\"))" build color-identifiers-mode.elc: compile_file color-identifiers-mode.el | dash.el args = -l dash.el