g.extension: allow to install extensions from a fork of the official repo#1177
Conversation
tmszi
left a comment
There was a problem hiding this comment.
Great work, I tested it and it works fine.
|
Thanks @tmszi for reviewing.
Yes. That is right. However, as it is right now, the In the long run and for GRASS 8 we should probably aim at throwing out SVN and use the github/gitlab API to fetch addons (esp. as we already started using it for branches)... Something along this lines: This results in the following response (with a download URL for every file (folders have null)): But that is a different PR and more work... |
You are welcome.
Yes, you're right.
We can use it, but the problem is that you need to download each file separately, number of files == number of requests/responses. It would be better if GitHub API had one REST endpoint to download any repository directory as an archive (zip or another format) with one request/response. I haven't found that yet. My opinion is that it will therefore be better to continue to use |
This PR adds an o-flag to specify that the
urlpoints to a fork of the official repo. In combination with thebranchoption, this allows easy testing of changes in addons by others...See #625