php / php/doc-en

fatal: detected dubious ownership in repository at '/var/www/doc-base'

Open
#4,380 2 comments 0 reactions 1 assignee View on GitHub

@jimwins is already working on this.

Since Jan 14, 2025.

Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

It happens when I run make on a clean branch on this repo:

/dev/doc-en$ make
docker build .docker -t php/doc-en
[+] Building 6.0s (5/12)                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                      0.0s
 => => transferring dockerfile: 685B                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:8.2-cli                                                                            1.6s
 => [internal] load .dockerignore          
[...]
 => exporting to image                                                                                                                   0.8s
 => => exporting layers                                                                                                                  0.8s
 => => writing image sha256:7d2764eca497e1282db787a4c1ed74824f010d8b0fa10638d6040657d689a061                                             0.0s
 => => naming to docker.io/php/doc-en                                                                                                    0.0s

 1 warning found (use docker --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 18)
touch .docker/built
docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en
configure.php on PHP 8.2.27

fatal: detected dubious ownership in repository at '/var/www/doc-base'
To add an exception for this directory, call:

	git config --global --add safe.directory /var/www/doc-base
doc-base/temp clean up FAILED.
make: *** [Makefile:22: xhtml] Error 1

Reproduced on both Ubuntu 24.04.1 and macOS.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.