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

Packages Using Relative Paths May Sometimes Break (Symlink Issue) #88

Open
zschuessler opened this issue Nov 5, 2018 · 0 comments
Open

Comments

@zschuessler
Copy link

zschuessler commented Nov 5, 2018

Hi,

First thanks for this great package. I love it!

I'm using Laravel Mix to merge a package manifest file into the main application's manifest file. The way I'm achieving this is by setting the public path with a relative path:

mix.setPublicPath('./../../../../../public').mergeManifest();

This doesn't work because of the symlink. If I were to give an absolute path or remove the symlink (and treat the package as a real composer package) it works.

Any ideas on how I could use relative paths with the symlink in play? (Sorry in advance if this is an issue with my own ignorance instead of an issue with your package)

Thanks! Cheers.

Edit: Digging up more info to come up with a solution. I noticed the symlink is on the package name, not the package namespace. So there's what the structure looks like for the vendor folder:

- vendor
--- packagenamespace (folder)
------- packagename (symlink) --> ../../../my-custom-path/packagenamespace/packagename/

Here's my studio.json file in case it's relevant:

{
    "version": 2,
    "paths": [
        "/var/www/composer-local/*"
    ]
}
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