Quantcast
Channel: Package Manager - Swift Forums
Viewing all articles
Browse latest Browse all 167

Help regarding adding new property to Package.swift and prepare the build correctly

$
0
0

Hi,

I'm currently working on my proposal implementation. I'm struggling a bit with understanding the structure of the SPM codebase. I think I have added the new License property to all parts where necessary here but I'm now struggling with two things

  1. Where should I put the code that checks for compatible licenses. I was planning on building an array of encountered licenses and, every time, a new Package is added to that array check on the acceptableLicenses property if it matches and if not, throw a warning.
    Should this be done during build or resolution, and where do I best add it for either one.
  2. How would I go on to test the implementation locally? Can I build my version of SPM and add start using it instead of the default toolchain one, or how to do it?

Thanks for your help in advance!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 167

Trending Articles