Comment 3 for bug 1575628

Revision history for this message
Olivier - interfaSys (olivier-interfasys) wrote : Re: "copy" plugin symlinks whole snap folder when no source is given

>It's not recursive since the copying doesn't include the parts/ dir

Correct, my bad.

>It sounds like the real issue here is that built snaps get copied if plugins have `source: '.'`

I'd say it's more than that. Source code should live in the src folder and that's what should be used by the source plugin as a root. People may store all sort of project files in the snap folder and it doesn't make sense to me to copy that.
I would agree that then if people use several parts to build a snap, they will probably create folders for these parts in the src folder and should then properly indicate those folders as the source for the copy operation, but the "src/" prefix shouldn't be necessary.