-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
switch to use packr to embed static assets #5952
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5952 +/- ##
==========================================
- Coverage 38.88% 38.87% -0.02%
==========================================
Files 354 354
Lines 50192 50192
==========================================
- Hits 19516 19510 -6
- Misses 27850 27857 +7
+ Partials 2826 2825 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change the snap/snapcraft.yaml too.
I can't believe that go-bindata isn't more clearly reported as required when building from source but it looks like it's not really mentioned. I think we need to add something to the documentation to say we're no longer using go-bindata and have moved to packr with URL - explaining that it should just be downloaded as necessary.
Good idea @zeripath. I've updated snap, and in terms of documentation I agree. I think https://docs.gitea.io/en-us/hacking-on-gitea/ needs more information overall, especially in regards to use of make file (in addition to exactly how bindata is used). If you are just waking up now that means it means I should've been asleep hours ago. If you want to get a head start on documentation feel free to push directly to my branch, otherwise I will add some when I wake up. Good night 😴 |
hmm... So I just pulled this repo and tried to build:
It's also extremely verbose whilst building... |
This too many open files problem is rather distasteful - it's a packing program why does it need to have >1000 file descriptors open? |
@zeripath I've reduced the number of files open required, let me know if this works for you. |
@zeripath docs added |
Thanks @techknowlogick . I'm still getting a too many files open error. The default ulimit on ubuntu is: $ ulimit -n
1024 It really shouldn't be having open that many file-descriptors! There's something not right in packr I think. What's your |
Thanks for checking again 😄 I really appreciate it.
|
I'm still shocked that it's doing this. I'm fairly certain that it must be leaking file descriptors somewhere. Looking on my phone I've seen one place in decompress that's leaking fds: https://github.com/gobuffalo/packr/blob/b0dc8ae47dc76a183765618fbece41cd433a8e2c/box.go#L127 This reader isn't being closed... But I don't know if that is the cause. I'd need to recompile and see. |
Hmm. OK so I upgraded to go 1.11 and this problem has disappeared... I'm not sure whether that makes this a blocker or not? I spoke too soon... It's still there. |
Closing this PR for now, if anyone wants to pick this up feel free. I may come back to this later, but for now bindata works. |
Fix #4250