Skip to content

make tools -> repository path is not owned by current user #172

Closed
@east4ming

Description

@east4ming

Describe the bug

make tools -> repository path is not owned by current user

❯ make tools       
error:
       … while fetching the input 'git+file:///home/casey/projects/homelab'

       error: opening Git repository '"/home/casey/projects/homelab"': repository path '/home/casey/projects/homelab' is not owned by current user
make: *** [Makefile:30: tools] Error 1

To reproduce

Steps to reproduce the behavior:

  1. Run make tools use a non-root linux user and a git latest version

Expected behavior

can run.

Logs and screenshots

❯ make tools       
error:
       … while fetching the input 'git+file:///home/casey/projects/homelab'

       error: opening Git repository '"/home/casey/projects/homelab"': repository path '/home/casey/projects/homelab' is not owned by current user
make: *** [Makefile:30: tools] Error 1

Additional context

no

Workaround

change Makefile:

tools add:

tools:
	@docker run \
       ...
		--volume ${HOME}/.gitconfig:/root/.gitconfig \

and ${HOME}/.gitconfig like this:

[user]
    name = <your name>
    email = <your email>
[safe]
    directory = *

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions