Skip to content

Commit

Permalink
Merge pull request #34 from fyne-io/bugs/another-approach-to-git
Browse files Browse the repository at this point in the history
Try a different approach to define a trusted path for git by saving it in the system git config.
  • Loading branch information
Bluebugs authored Nov 11, 2023
2 parents 4acf552 + 26e047d commit 786e685
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ RUN set -eux; \
mkdir -p "$GOPATH/pkg/mod" && chmod -R 777 "$GOPATH"

# Work around `fatal: detected dubious ownership in repository at ‘/app’` error reported by some users likely when UID < 1000
ENV GIT_CONFIG_GLOBAL /.gitconfig
RUN git config --global --add safe.directory /app && chmod a+r /.gitconfig
RUN git config --global --add safe.directory /app && mv ~/.gitconfig /etc/gitconfig && chmod a+r /etc/gitconfig

# Install fixuid see #41
RUN arch="$(dpkg --print-architecture)"; \
Expand Down

0 comments on commit 786e685

Please sign in to comment.