Coder Social home page Coder Social logo

Comments (5)

krzysztofzablocki avatar krzysztofzablocki commented on June 15, 2024 1

You'd need to use the spm cache

from sourcery.

Velin92 avatar Velin92 commented on June 15, 2024

Hello no news on this so far?

from sourcery.

krzysztofzablocki avatar krzysztofzablocki commented on June 15, 2024

You need to get at least definition scanned, you can add conformance in your own project code

from sourcery.

Velin92 avatar Velin92 commented on June 15, 2024

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.

Velin92 avatar Velin92 commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.