Comments (6)
A bit more info on this: sourcery seems to be generating some .swift files and writing them to the system temp directory when it runs.. I think the build is seeing these as input files which is causing issues. Are these files required for sorcery to run and if not is there a way to prevent them from being generated?
from sourcery.
Specifically these files are appearing in temp directory:
AccessLevel.swift BytesRange.swift Diffable.generated.swift GenericRequirement.swift Protocol.swift Typealias.swift
Actor.swift Class.swift Diffable.swift Import.swift ProtocolComposition.swift Typed.generated.swift
Annotations.swift Closure.swift Documentation.swift JSExport.generated.swift Struct.swift Typed.swift
Array+Parallel.swift Coding.generated.swift Enum.swift Log.swift Subscript.swift Variable.swift
Array.swift Composer.swift Equality.generated.swift Method.swift TemplateContext.swift
AssociatedType.swift Definition.swift Extensions.swift Modifier.swift Tuple.swift
Attribute.swift Description.generated.swift FileParserResult.swift ParserResultsComposed.swift Type.swift
AutoHashable.generated.swift Dictionary.swift Generic.swift PhantomProtocols.swift TypeName.swift
from sourcery.
do you have .swifttemplates?
from sourcery.
I do - (it's the .swifttemplate used by swiftymocky) I delved into the source code a little and kinda understand what is going on now. Thinking of making a fork which allows an argument to set a custom build directory, which could be the plugins packageWorkDirectory. This should be different for every target so I think will resolve the issue I am having. Do you think that would be a good way forward?
from sourcery.
a PR with optional build directory sounds good to me
from sourcery.
Hi @swwol, we are trying to achieve the build the same plugin for our iOS app which is modularized extensively using SPM. could you share how you achieved this for your own needs?
Thank you,
Victor
from sourcery.
Related Issues (20)
- Properties with types conforming to a protocol not detected HOT 3
- Auto mock template with opaque types HOT 1
- Add artifactBundle to release process HOT 4
- generate mock for UI Testing Bundle
- Generating mocks for protocols exposed from a Swift Package HOT 6
- Enum with rawValue parses comment HOT 2
- How to use `trimEnabled` with Stencil Template? HOT 1
- Sourcery does not see files during generation and linking to the project HOT 3
- Iterate Static Arrays HOT 1
- Extracting generic type name from an extension HOT 1
- Reference next value in stencil template loop
- AutoMockable: Ability to skip duplicate mocks creation while scanning external module sources HOT 2
- Sourcery crashes on \r\n (a.k.a. DOS- or Windows-style) line-endings HOT 1
- Failed to link file HOT 2
- [Question] Using Sourcery In Swift Package Executable HOT 4
- Errors when running unit tests HOT 2
- Get protocols that are implemented by the Element type of an array
- Some unit tests are executed for too long HOT 4
- Not able to build GraphQL target - Command PhaseScriptExecution failed with a nonzero exit code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sourcery.