Package Details: llama-swap v240-1

Git Clone URL: https://aur.archlinux.org/llama-swap.git (read-only, click to copy)
Package Base: llama-swap
Description: Model swapping for llama.cpp (or any local OpenAPI compatible server)
Upstream URL: https://github.com/mostlygeek/llama-swap
Keywords: ai llm
Licenses: MIT
Conflicts: llama-swap-bin
Provides: llama-swap
Submitter: repsac
Maintainer: fabse
Last Packager: fabse
Votes: 3
Popularity: 0.79
First Submitted: 2025-05-20 12:36 (UTC)
Last Updated: 2026-07-15 03:52 (UTC)

Latest Comments

fabse commented on 2026-06-23 10:45 (UTC)

@jpetrina nice, thanks for testing! if it wasn't for someone marking this package as outdated (smh the CI failed), I would have been slower xD

jpetrina commented on 2026-06-23 10:34 (UTC)

@fabse, just tested it and it seems the edge case is fixed with the Makefile approach. You were faster :D

fabse commented on 2026-06-23 10:31 (UTC)

one side effect of this is that --version will not report the tagged version, but a hash instead, but I figured that's fine since this package is tagged

fabse commented on 2026-06-23 10:23 (UTC)

oh sorry, I must have missed the notification for your comment! welp actually I changed the pkgbuild to now use the Makefile in the repo to do the build instead of manually doing each steps, which also meant using npm instead of pnpm (sadly :/)

does the edge case still happen now?

jpetrina commented on 2026-06-16 08:45 (UTC) (edited on 2026-06-16 09:08 (UTC) by jpetrina)

Hi maintainer,

there is a small edge case with pnpm install in makepkg when switching users:

  1. BUILDDIR=/tmp/makepkg
  2. user A builds this package, pnpm installs to /tmp/.pnpm-store
  3. user B remove $BUILDDIR, tries to build this package
  4. pnpm install fails because /tmp/.pnpm-store is owned by another user with:
==> Starting build()...
[ERR_SQLITE_ERROR] attempt to write a readonly database

pnpm: attempt to write a readonly database
    at file:///usr/lib/node_modules/pnpm/dist/pnpm.mjs:16156:19
...

My suggestion to fix this:

diff --git a/PKGBUILD b/PKGBUILD
index 1ad051b..113f566 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,7 +36,7 @@ build() {
   cd "$pkgname"

   cd ui-svelte
-  pnpm install
+  pnpm install --store-dir ./.pnpm-store
   pnpm run build
   cd ..

Now removing $BUILDDIR will remove the store too.