I have a simple test profile setup with symlinks to another profiles modules directory like this:

lrwxrwxrwx 1 www-data www-data  21 2011-10-05 14:02 modules -> ../nodestream/modules
-rw-r--r-- 1 www-data www-data 141 2011-10-05 14:29 profile_test.info
-rw-r--r-- 1 www-data www-data 263 2011-10-05 14:20 profile_test.make
lrwxrwxrwx 1 www-data www-data  20 2011-10-05 14:29 themes -> ../nodestream/themes

When trying:

drush make --debug --no-core --contrib-destination=. profile_test.make .

It fails with debug message:

Executing: cp -Rf '/tmp/drush_make_tmp_1317817882_4e8c4e1a23a5e/__build__/modules' '.'
  cp: cannot overwrite non-directory `./modules' with directory `/tmp/drush_make_tmp_1317817882_4e8c4e1a23a5e/__build__/modules'
Cannot move build into place [2.28 sec, 7.31 MB]                                                                             [error]

Comments

helmo’s picture

Project: Drush Make » Drush
Version: 6.x-2.x-dev »
Component: Code » Make

[ Powered by #1115636: Issue Macros and Templates - Drush Make]

Drush make is being merged into drush core (discussed in issue:#1310130: Put drush make in drush core)
This means that the issue queue is also moving. The drush queue has a component 'Make' especially for drush_make.

More information will be posted on the drush_make and drush project pages.

helmo’s picture

patcon’s picture

Version: » 7.x-5.4

Just ran into this again here:
https://github.com/myplanetdigital/2ndleveldeep/commit/8a2fa69ba94292564...

Was getting this error, and then finally clued in to delete the symlink and everything turns into hearts, stars and horseshoes afterward.

2ndleveld cloned from git@github.com:myplanetdigital/2ndleveldeep.git.                                                                                                  [ok]
Unable to copy /tmp/drush_tmp_1340833396_4feb7e740dc15/2ndleveld to /tmp/make_tmp_1340833389_4feb7e6d02202/__build__/profiles/2ndleveld.                                [error]

For now, I've just removed the non-critical symlink, but will try to investigate later

jonhattan’s picture

Status: Active » Fixed

Probably fixed at #1626972: Recreate symlinks in drush_copy_dir() instead of copying. Please reopen if error persists.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.