Skip to content

Commit

Permalink
Update Makefile, fix git ownership error
Browse files Browse the repository at this point in the history
- adjusted tools in Makefile to add the safe.directory argument to the docker run command in order to fix the error regarding ownership (Refer to khuedoan#139)
  • Loading branch information
brimdor committed May 10, 2024
1 parent e763feb commit 2eb14d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ tools:
--volume homelab-tools-cache:/root/.cache \
--volume homelab-tools-nix:/nix \
--workdir $(shell pwd) \
docker.io/nixos/nix nix --experimental-features 'nix-command flakes' develop
--entrypoint /bin/sh \
docker.io/nixos/nix -c "\
git config --global --add safe.directory $(shell pwd) && \
nix --experimental-features 'nix-command flakes' develop"

test:
make -C test
Expand Down

0 comments on commit 2eb14d8

Please sign in to comment.