Skip to content

Conversation

@brunogaspar
Copy link
Member

Currently if we're publishing a directory from a package and this directory already exists on the application, even if the files don't, the package directory contents never gets published.

Example, publishing migrations of a package, these migrations would never be published because the database/migrations already exists therefore it gets ignored by this line

This was the most simpler way i could find to make it work.

Note: Went with a more cleaner way, without any if/else, but if required i can update to if/else.

Related: laravel/docs#1047

Fixed the `vendor:publish` command to publish directories properly, otherwise if the directory we're publishing already exists, the files never get's published.

Example, publishing migrations of a package, these migrations would never be published because the `database/migrations` already exists.
@taylorotwell
Copy link
Member

This wasn't entirely correct, but I fixed, and it wasn't too bad thanks to @frankdejonge's MountManager functionality. Flysystem integration paying off already! ❤️

@brunogaspar
Copy link
Member Author

Thanks @taylorotwell !

@brunogaspar brunogaspar deleted the patch-1 branch January 29, 2015 03:29
@frankdejonge
Copy link
Contributor

@taylorotwell 👯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants