Skip to content

Directory ownership test fails with docker #1777

@mgsloan

Description

@mgsloan

stack build in a repo that builds in a docker container results in

You are not the owner of '/home/mgsloan/.stack/'. Aborting to protect file permissions.
Retry with '--allow-different-user' to disable this precaution.

Despite me owning that folder. stack exec --allow-different-user -- whoami reports stack, and stack exec --allow-different-user -- ls -la /home/mgsloan shows a .stack folder owned by stack, so I'm not sure what's going wrong here. I haven't looked at the code yet, could be something simple.

Docker is discussed a bit in the PR - #1599 - but I didn't test it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions