Skip to content

Commit 0465269

Browse files
Fix GitHub Action failure: add git package and resolve Docker ownership issues (#186)
* Initial plan * Fix GitHub Action failure: add git package and safe directory config Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NorthernMan54 <19808920+NorthernMan54@users.noreply.github.com>
1 parent 9139c7a commit 0465269

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ echo >> "$MANIFEST"
181181
echo "## What's Changed" >> "$MANIFEST"
182182
echo >> "$MANIFEST"
183183

184+
# Configure git for Docker containers to avoid "dubious ownership" errors
185+
git config --global --add safe.directory /repo 2>/dev/null || true
186+
184187
# Get the latest tag to compare against, filtered by release type
185188
if [[ "${PKG_RELEASE_TYPE:-stable}" == "beta" ]]; then
186189
# For beta releases, only look at beta tags

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV QEMU_ARCH=${QEMU_ARCH:-x86_64} S6_KEEP_ENV=1
77
COPY build/qemu/qemu-${QEMU_ARCH}-static /usr/bin/
88

99
RUN apt-get update && \
10-
apt-get install -y build-essential debhelper debhelper dh-make devscripts jq
10+
apt-get install -y build-essential debhelper debhelper dh-make devscripts jq git
1111

1212
WORKDIR /repo
1313

0 commit comments

Comments
 (0)