Closed ikeafredrikcarlstrom closed 2 years ago
Hi @ikeafredrikcarlstrom,
There's no existing solution for it, given the tool was build mostly for open packages. But that's actually something that would be very nice to have as it would be useful for e.g. when developing packages.
I'll add this to the pipeline to be added as an improvement. Let me know in case you would be interested in helping implement it.
Hey @ikeafredrikcarlstrom sorry for taking long to get back to you. Please disconsider my previous message, I've remembered that the tool supports not only public remote repositories, but also any local project. That means, for private projects, that are under development, what you can do is to run the tool based on the local path:
/// swift-packge-info --for [local_relative_path] [product]
// e.g.
swift-package-info --for ../CurrencyText --product CurrencyText
Here's a link to the README example on how to run the tool for local packages.
Let me know if this helps.
Hey @marinofelipe ! Next time I have a window of opporunity, if it's not solved, I'll invest some time and see if I can make something happen. I saw that option and it's really great, I can use it in most cases!
Thanks, @ikeafredrikcarlstrom. I'm closing this issue then, if you'd like to try another approach for private packages that is not of local paths, let me know and so we can discuss it :).
When trying to analyze a private repository I receive the error: Error: Failed to fetch package content with error: fatal: repository '1' does not exist
Is there an existing solution for adding credentials/using my current github credentials while fetching the repository?