Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker volume with different permissions causes: integer expression expected #148

Open
kierun opened this issue May 5, 2021 · 0 comments

Comments

@kierun
Copy link

kierun commented May 5, 2021

I have the following (weird) set-up: a ./volume/postgresql in my project directory which is owned by a postgres user which is mounted for tests by a PG docker image. When the /data dir is created, I get this:

√ (feat/gorm|+10); ls -l ./volumes/postgresql
drwx------ postgres usr 454 B Wed May  5 09:25:35 2021 data/
git_super_status:[:23: integer expression expected: not
git_super_status:[:23: integer expression expected: could
git_super_status:[:26: integer expression expected: not
git_super_status:[:29: integer expression expected: could
git_super_status:[:35: integer expression expected: open
git_super_status:[:39: integer expression expected: directory
git_super_status:[:43: integer expression expected: 'volumes/postgresql/data/':
git_super_status:[:47: integer expression expected: Permission
git_super_status:[:51: integer expression expected: denied

If I add ./volumes/postgresql/data to .,gitignore, the problem goes away so there is an easy work-around since I do not want the fake database to be in git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant