SwiftGen / SwiftGenPlugin

SwiftGen plugin for SPM
MIT License
95 stars 63 forks source link

Include DERIVED_SOURCES_DIR in command environment #5

Closed gredman closed 1 year ago

gredman commented 2 years ago

Using DERIVED_SOURCES_DIR and running the command plugin using as described in the README results in an error:

swiftgen: error: File ${DERIVED_SOURCES_DIR} not found.

This change exports the plugin working directory as DERIVED_SOURCES_DIR in the command plugin, the same as in the build tool plugin.

gredman commented 1 year ago

https://github.com/SwiftGen/SwiftGenPlugin/pull/9 fixes this and maybe more, so please delete this if that PR is accepted 🙂