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

Files are copied instead of symlinked. #179

Open
gety9 opened this issue Jun 9, 2019 · 0 comments
Open

Files are copied instead of symlinked. #179

gety9 opened this issue Jun 9, 2019 · 0 comments

Comments

@gety9
Copy link

gety9 commented Jun 9, 2019

I am using using "magento-deploystrategy": "symlink", but files are copied.
What can be the reason?

Here are the settings i use:

main composer.json

{
  "name": "myproject/trt",
  "require": {
    "myname/magento-core-composer-installer": "*",
    "openmage/magento-lts": "1.9.4.x-dev",
    "myproject/trt-source": "@dev"
  },
  "authors": [
    {
      "name": "My name",
      "email": "My email",
      "role": "Maintainer"
    }
  ],
  "repositories": [
    {
      "type": "path",
      "url": "../../code"
    },
     {
      "type": "vcs",
      "url": "[email protected]:myname/magento-core-composer-installer.git"
    }
  ],
  "extra": {
    "magento-core-package-type": "magento-source",
    "magento-root-dir": "/var/www/html",
    "magento-deploystrategy": "symlink"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

Package composer.json

{
  "name": "myproject/trt-source",
  "license": "OSL-3.0",
  "authors": [
    {
      "name": "My name",
      "email": "My email",
      "role": "Maintainer"
    }
  ]
}

I am using docker for windows and running composer in linux container.
Just to make sure it's not something windows related i checked files from inside container
test -h filename && echo "is symlink" || echo "is regular file"
and result is is regular file

When i manually create symlinks using ln -s /dir1/filename /dir2/filename they work as symlinks and result in is symlink on test above.

What can be the reason that "magento-deploystrategy": "symlink" is not interpreted correctly ?

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