Comments (5)
You'd need to use the spm cache
from sourcery.
Hello no news on this so far?
from sourcery.
You need to get at least definition scanned, you can add conformance in your own project code
from sourcery.
You need to get at least definition scanned, you can add conformance in your own project code
How may I achieve this?
Since the it's an SPM the definition is not really in project, how can I set the .yml configuration to scan the SPM package code?
from sourcery.
You'd need to use the spm cache
I tried to use the swiftpm cache in the config file like this:
sources:
- ../../ElementX
- ~/Library/Caches/org.swift.swiftpm/
templates:
- AutoMockable.stencil
output:
../../ElementX/Sources/Mocks/Generated/GeneratedMocks.swift
args:
automMockableTestableImports: []
autoMockableImports: [Combine, Foundation, MatrixRustSDK, AnalyticsEvents]
However it's still trying to access my folder locally instead of accessing it from the user folde, in fact the script fails saying:
'/Users/mauroromito/Documents/Xworkspace/element-x-ios/Tools/Sourcery/~/Library/Caches/org.swift.swiftpm' does not exist or is not readable.
Of course since the sourcery script should also work across multiple collaborators and on the CI, I can't use multiple ../ to reach the user folder.
How would I achieve that with the .yml configuration?
from sourcery.
Related Issues (20)
- Chinese comments are not supported? HOT 2
- Version 2.0.0 was removed HOT 5
- type["SomeType"].variables[0].name returns whole line with comments for variable with property wrapper (swifttemplate, 2.0.1)
- Annotations are ignored for type having @MainActor on separate line HOT 1
- running sorcery in buildtool plugin on multiple packages within a project results in error HOT 6
- 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
- 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
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.