aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/janet-pm
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2025-03-26 20:15:25 -0500
committerCalvin Rose <calsrose@gmail.com>2025-03-26 20:15:25 -0500
commit7340212f5c9112ec0735d0ce0bcfe3028c240338 (patch)
treed8960fc995d8bd08991fcbc7429d149b423b6cb8 /bin/janet-pm
parentEven better than pdb files is embedded debug info in object files. (diff)
Correctly clear the cache on windows.
Git marks some files as "readonly" on windows preventing deletion via naive means. Use the "attrib" utility to take care of that.
Diffstat (limited to 'bin/janet-pm')
-rwxr-xr-xbin/janet-pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/janet-pm b/bin/janet-pm
index 68ed51d..a0ab274 100755
--- a/bin/janet-pm
+++ b/bin/janet-pm
@@ -185,7 +185,7 @@
(defn clear-cache
[]
(def cache (path/join (dyn *syspath*) ".cache"))
- (sh/rm cache))
+ (sh/rm-readonly cache))
(defn list-pkgs
[&opt search]