You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os.TempDir() features fail with docker, causing tests to fail on MacOS #134
On MacOS, though, the resultant directories don't seem to be mount-able by docker. The out-of-the-box TMPDIR on a Mac is generally something like /var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/ - but /var happens to be a link to /private/var. So the test appears to be untarring a repo into a directory that docker fails to mount. Our best theory so far is that Docker, which by default includes /private in its shared directories, doesn't properly process (or golang on mac?) doesn't process into a real directory. export TMPDIR=/private/var/folders/db/741gx8tj20d5z1f3zjpvw2vh0000gp/T/ (exposing the same directory without any symlink involvement) solves the problem, as does export TMPDIR=/Users/rfay/tmp (/Users is in the standard mount path for docker).
The resultant error message when running make test on MacOS for ddev is
ERROR: for local-drupal8-db Cannot start service local-drupal8-db: Mounts denied: ocker-for-mac/osxfs/#namespaces for more info.
.
jpvw2vh0000gp/T/drupal8276132647/.ddev/data
What you expected to happen:
Working tests should run successfully on all platforms; there really shouldn't be any issues with this type of thing.
How to reproduce it (as minimally and precisely as possible):
'make test on IOS, with default $TMPDIR
Related source links or issues:
Pull #116 added the use of TMPDIR for mounted source trees.
It's certainly possible that we should chase this down/report it as a docker or golang bug. It's a nasty one.
We can probably solve it for ourselves by
controlling $TMPDIR to something we know is good, which might be hard to predict, or
by processing the result of ioutil.TempDir() explicitly into a path which does not contain a symlink, assuming that can be proven to be the problem.
Activity
rfay commentedon Apr 14, 2017
Fixed in #140