stg produces this error on my repo for any command: (except things like stg --version that presumably don't access the git state at all)
error: The slotmap turned out to be too small with 32 entries, would need 4 more
This only appears to happen on only some software configurations even on the same repo. Inside my development docker image it fails. This has this version:
# stg --version
Stacked Git 2.5.5
git version 2.53.0
but it works in the host environment:
# stg --version
Stacked Git 2.5.5
git version 2.43.0
The stg versions are the same, but git is different.
This problem went away after running git gc on the repo, which sadly means that I can't provide the repo for reproduction.
I suspect the issue is related to the number of packs in the repo and is probably due to GitoxideLabs/gitoxide#1788.
Workaround
Run git gc.
stgproduces this error on my repo for any command: (except things likestg --versionthat presumably don't access the git state at all)This only appears to happen on only some software configurations even on the same repo. Inside my development docker image it fails. This has this version:
but it works in the host environment:
The stg versions are the same, but git is different.
This problem went away after running
git gcon the repo, which sadly means that I can't provide the repo for reproduction.I suspect the issue is related to the number of packs in the repo and is probably due to GitoxideLabs/gitoxide#1788.
Workaround
Run
git gc.