-
Notifications
You must be signed in to change notification settings - Fork 28
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
Option to omit source code all together #15
Comments
This needs some time to implement but I think it is possible. I will notify you when it is done (or the idea is given up). Thanks for the suggestion. |
Where is your source code hosted? Is it sufficient to only support github and gitlab? |
BTW, there is an obstacle that it is hard to detect the source hosts of third-party dependency packages. So the current implementation will only support external source code pages for standard packages and the current project packages. |
I just found a way to find out the source hosts of third-party dependency packages. But this way needs external network connection. Is it acceptable in your use case? |
For sure, along with some kind of caching perhaps? Either way would be great though! |
Ah, maybe the host urls of the modules with |
@alecthomas |
Will do this week hopefully, I'll let you know. Thank you very much. |
Tried it out and it vastly reduced the size of the output, thank you! It does still appear to generate source for the module itself though, even though it's on GitHub. Is that intentional? |
It is okay for my project, which is also hosted on Github. I just pushed a new commit which will not panic for projects which are not git based. (unrelated to your last comment). What are the outputs for the following 4 commands in your project directory?
In my case, they are:
|
My remote uses SSH because it's a private repo with an SSH based security model. It looks somewhat like this:
|
OK, thanks for the information. |
I just pushed a new commit and tagged it as v0.2.7. |
BTW, the |
Yeah I'm using that; works well. |
(but does not work with the above) |
I don't very get it. Do you mean it doesn't work with the |
With that option it reduces the output size from 900mb to 200m but still includes the source for my private ssh cloned repo. |
Some strange. What the output of with these options: |
@alecthomas
|
I think I get the reason, but I'm not very sure. Cloud you add the option |
Ah, the last comment is not valid. I just pushed another commit, which fixed a bug which makes the source on "bitbucket.org" unable to be linked externally. |
Does the problem still exist with the tip? If the problem is gone, I will create the v0.2.8 tag. |
I'll try to remember to check later today. No worries cutting a release though, the worst that happens is it uses a bit of extra data. |
In very large repositories, I don't really want to include the source code again, I'd rather just link to the original source code files.
I realise this will require some level of heuristics for different source control hosters like GitHub, GitLab, etc.
The text was updated successfully, but these errors were encountered: