When release.sh is launched from VS Code's integrated terminal, podman sees $HOME=/home/$USER/snap/code/<rev>/ and stores its database there. If snapd auto-updates code mid-session (rev 258 -> 260), the next podman invocation finds a stale static-dir pointer and aborts with: Error: database static dir ".../snap/code/258/.../libpod" does not match our static dir ".../snap/code/260/.../libpod" Detect the pattern ($HOME under /home/*/snap/*) and bail out early with an actionable message: re-run from a regular host terminal.
5.1 KiB
5.1 KiB