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

Generate error code for other sources #1135

Open
ssly1997 opened this issue Jan 28, 2023 · 3 comments
Open

Generate error code for other sources #1135

ssly1997 opened this issue Jan 28, 2023 · 3 comments

Comments

@ssly1997
Copy link

I used sourcery to generate code for different cocoapods module, all modules depend on a module with defined sourcery protocols, such like this:

in protocol module:
define sourcery protocol
image

in function module:
define structs and implement the protocol
image

in function module podspec:
define sourcery script
two sources are specified: prorocol module and function module
image

normally, sourcey can generate expected code
however, occasionally the code of module B is generated in module A, like this:
image

clean and rebuild can solve this problem, but this has a certain impact on the development efficiency.
I hope to get a solution

@krzysztofzablocki
Copy link
Owner

you shouldn't specify exact file for output but a folder since they are constructed using template name by default

@ssly1997
Copy link
Author

you shouldn't specify exact file for output but a folder since they are constructed using template name by default

I tried , but the result is the same as before
image

image

@ssly1997
Copy link
Author

This looks like multiple sourcery instances running at the same time, outputting the generated code to the wrong location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants