-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use for local and private packages #6
Comments
@timstudt I'm ready to accept a PR if you want to implement. |
will try my best |
+1! I'll investigate the complexity to implement this. @adam-fowler any leads/pointers would be highly appreciated 😊 |
@rogerluan First thing you'll need to do it support loading private repos. Currently the url load is basic GET without any authentication. You'll need to add authentication details here if you want to access private repos. Then you'll need to support the loading of both local filesystem packages as well as ones found on GitHub/gitlab. Looking at the package dependency type This is really two different tasks
So if you do some of this work, please separate it out into 2 PRs |
Thanks for the tips @adam-fowler ! I agree it makes sense to separate in two different PRs 👍 I'll see what I can do 😊 |
sorry, I got a bit stuck with this, and then put it on hold.. maybe it's easier to start with local packages w/o having to deal with authentication. if I run it locally on a project, I assume I have access to other local packages (e.g. the } else if /* is local package */ {
let data = try Data(contentsOf: URL(fileURLWithPath: url))
... // parse file |
@timstudt Yeah I don't know how the authentication works you'd need to spend some time with the GitHub documentation for that. Local packages should be easier. What you describe above seems about right. |
This is a great project!
I was looking for exactly this tool but for generating a graph of local dependencies on a private repo.
It seems dependencies are of type
String
which has to be a validURL
. How about extending it and support all types of dependencies?E.g.
It wouldn't break the primary intend of using it on https://swiftpackageindex.com, but could as well be run locally on private repos.
The text was updated successfully, but these errors were encountered: