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

CLI deletes resources on publish #186

Open
umulmrum opened this issue Mar 12, 2016 · 5 comments
Open

CLI deletes resources on publish #186

umulmrum opened this issue Mar 12, 2016 · 5 comments
Labels

Comments

@umulmrum
Copy link

Using 1.0.0-beta10 of the Puli CLI this happens:

puli publish --install will install new resources as expected (creates symlinks on localhost). If the same command is executed again, any new resources are again installed correctly, but resources that were published before are deleted from the SOURCE directory

In my case I built a Symfony bundle and added Resources/public/css/my.css, then published.
Then I added Resources/public/js/my.js and published again to create the js symlink. After that, my.css was deleted from the bundle. Then I published again and my.js was also gone.

I can't imagine a use case for this behaviour, so either I made some horrible mistake or this is a bug.
Let me know if I need to provide more information.

Thanks for your help!

@tgalopin
Copy link
Contributor

Hello!

@webmozart this may be related to puli/repository#91, did we release a new CLI version when we fixed it in puli/repository beta10 ?

@umulmrum can you tell us what repository type you are using (you can do that by running puli config and check the key repository.type)? If you are using the filesystem one, you can try to use the JSON one (run puli config repository.type json), it could fix the issue.

@umulmrum
Copy link
Author

@tgalopin thanks for the quick reply. Did only look in the open issues, but puli/repository#91 seems to be exactly the same problem.

repository.type already is json.

@tgalopin
Copy link
Contributor

If your repository type is json, puli/repository#91 is not the problem but it may be related.

@thewilkybarkid
Copy link

I've encountered the same behaviour with beta10.

@thewilkybarkid
Copy link

Just spotted that the CLI beta10 was released before the repository beta10, so it can't contain the bug fix. I tried including the CLI as a local dependency and it does work as expected.

@webmozart Are you able to tag CLI beta11 soon?

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

4 participants