instow

:)
git clone https://git.sr.ht/~ashymad/instow
Log | Files | Refs | LICENSE

commit 3ead529067e87ac59e6016d0581fdf48c75cf39a
parent a003cee3ed7cc1f33d4dc8f14a21feb235db14e3
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Thu,  2 Jul 2026 15:55:25 +0200

Change to srcdir

Diffstat:
Msrc/main.janet | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main.janet b/src/main.janet @@ -94,6 +94,7 @@ (def stowdir (path/join target "stow")) (def srcdir (string/slice (procout "git" "rev-parse" "--show-toplevel") 0 -2)) (def srcsubdir (os/cwd)) + (os/cd srcdir) (def pkg (libc/basename srcdir)) (def pkgdir (path/join stowdir pkg)) (def destdir (libc/mkdtemp "/tmp/instow.XXXXXX")) @@ -220,9 +221,7 @@ :build/cargo (do - (os/cd srcdir) (checkrun :install/cargo :cargo "build" "--locked" "--release") - (os/cd srcsubdir) (if (file/file-exists? "install.yml") (set state :install/rinstall))) :build/pip @@ -293,9 +292,7 @@ :install/cargo (do (set prefix "") - (os/cd srcdir) - (checkrun :move :cargo "install" "--offline" "--frozen" "--no-track" "--root" destdir "--path" srcsubdir) - (os/cd srcsubdir)) + (checkrun :move :cargo "install" "--offline" "--frozen" "--no-track" "--root" destdir "--path" srcsubdir)) :install/pip (utils/letsome wheels (libc/glob (path/join builddir "*.whl"))