Meson dist build is unhappy with the git clone we mount into local container environments and forces updating git's index. Since this is only relevant to the dist build, only update the index then. Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx> --- Honestly I have no good explanation why dist kept complaining about uncommitted changes even though there weren't any. It probably has something to do with the fact how git clone --local works, but I don't see why - an option would be to convert to using '--no-hardlinks'. Anyhow, 'update-index --refresh' was the only thing that helped to solve the problem so that the dist tarball could be created inside a container locally followed by an RPM build. ci/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index b6596300be..6731db50c1 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -33,6 +33,10 @@ run_build() { } run_dist() { + # dist is unhappy in local container environment complaining about + # uncommitted changes in the repo which is often not the case - refreshing + # git's index solves the problem + git update-index --refresh meson dist -C build --no-tests } -- 2.39.1