Hi everyone, I have a question about using Symlink...
# plugin-development
f
Hi everyone, I have a question about using Symlink with a plugin. From my plugin spmForKmp, the user has a folder where he can add/edit swift file. Currently, the plugin copies these files inside a working directory made by the plugin where everything needed is stored. So the Swift compilation error targets the working directory instead of the original Swift directory. I would like to replace the copy by a symlink of the directory, I know it’s technically possible, but is it a good idea?
v
Not if you want to support Windows. Besides that, if that were possible, why creating a symlink or copy at all and not just work on the original dir?
f
Thanks,
Well, the original directory only stores the source files; the plugin creates a swift package working space from the sources and the plugin configuration.
My target is only macos, so it’s not an issue for me.
v
But still, how would creating a symlink help? You would still need the additional files in there, won't you?