Skip to content

Commit

Permalink
use current user to run docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Mar 25, 2024
1 parent 58e763d commit 6299ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/generate_mocks.sh
Expand Up @@ -3,7 +3,7 @@ rm -Rf ../mockadmin

# install only if not already present
if ! which mockery ; then
docker run --rm -v "$(dirname "$PWD")":/src --workdir=/src vektra/mockery:v2.42.1
docker run --rm -u "$(id -u):$(id -g)" -v "$(dirname "$PWD")":/src --workdir=/src vektra/mockery:v2.42.1
else
mockery --dir ../mockadmin
fi

0 comments on commit 6299ae6

Please sign in to comment.