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

Problems with nested bindings #187

Open
patternseek opened this issue Mar 21, 2016 · 1 comment
Open

Problems with nested bindings #187

patternseek opened this issue Mar 21, 2016 · 1 comment
Labels

Comments

@patternseek
Copy link

Hi, the default repository provider still doesn't seem to be able to merge paths on publish, it works with filesystem but not on every install, i seem to have to install twice. Specifically I have bindings like this :

"bindings": {
        "4365d969-7c7f-475d-9a8e-55b54bf88bb1": {
            "_class": "Puli\\Discovery\\Binding\\ResourceBinding",
            "query": "/module/client_xxx/public{,/**/*}",
            "type": "puli/public-resource",
            "parameters": {
                "path": "/agile/module/client_xxx",
                "server": "local"
            }
        },
        "598f9e7d-abe1-44d6-9e69-0da1dc86c056": {
            "_class": "Puli\\Discovery\\Binding\\ResourceBinding",
            "query": "/module/ads/public{,/**/*}",
            "type": "puli/public-resource",
            "parameters": {
                "path": "/agile/module/ads",
                "server": "local"
            }
        },
        "9033113f-dd7d-4fbe-8798-7cbd8c69c307": {
            "_class": "Puli\\Discovery\\Binding\\ResourceBinding",
            "query": "/module/audiovideo/public{,/**/*}",
            "type": "puli/public-resource",
            "parameters": {
                "path": "/agile/module/audiovideo",
                "server": "local"
            }
        },
        "ae29547a-c9f8-46d6-b13d-5f1f44ed9fc4": {
            "_class": "Puli\\Discovery\\Binding\\ResourceBinding",
            "query": "/app/public{,/**/*}",
            "type": "puli/public-resource",
            "parameters": {
                "path": "/",
                "server": "local"
            }
        }
    },

but the first three (those going into /agile/module/*) don't get put into place, despite the claims of the cli (cli output:

 ❯ sudo ./vendor/bin/puli publish --install 
Installing /module/client_xxx/public into var/www/journal/agile/module/client_xxx via symlink...
Installing /module/ads/public into var/www/journal/agile/module/ads via symlink...
Installing /module/audiovideo/public into var/www/journal/agile/module/audiovideo via symlink...
Installing /app/public into var/www/journal via symlink...

 tolan@orbit  ~/s/w/agile   feature/videosets ⁝ ⬆ ✚ ✱ 
 ❯ ls -alh /var/www/journal/agile/module 
total 8.0K
drwxr-xr-x 2 root  root     4.0K Mar 21 19:54 .
drwxr-xr-x 6 tolan www-data 4.0K Mar 21 19:54 ..

This appears to be an ordering issue as if I manually move the last binding above to the top of the list then the modules directory is properly populated.

@webmozart
Copy link
Member

Thank you for reporting this issue! I think this should be related to #186, which is fixed in master.

@webmozart webmozart added the Bug label Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants