-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Remove explicit 'generate' calls, fix release task #9288
Conversation
Not 100% certain about the |
`generate` is now implicit during `build` since go-gitea#9114, it is no longer necessary or desired to specify it explicitely.
91971a5
to
e0497d2
Compare
Codecov Report
@@ Coverage Diff @@
## master #9288 +/- ##
==========================================
- Coverage 41.25% 41.24% -0.01%
==========================================
Files 558 558
Lines 73058 73058
==========================================
- Hits 30137 30135 -2
- Misses 39150 39154 +4
+ Partials 3771 3769 -2
Continue to review full report at Codecov.
|
@techknowlogick I can't find |
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.
I think you should remove the warning about the generate on build from source.
@axifive It doesn't. @silverwind I've just checked the most recent binaries for master branch and they don't include the generated CSS/JS, perhaps a Drone step could be added before the xgo one to generate the CSS/JS for releases. |
@techknowlogick what does |
@silverwind It uses the command line flags that passes the TAGS to the go build, that way it knows to use bindata tag. Now that pregenerated css/js aren't included in repo they will have to be generated before xgo is called, as xgo doesn't have node dependancies in its docker image, a different drone step (before xgo is called) would be best place to put it (if you'd like me to do this step I can, and then push it to your branch). |
Okay. Does it have to be a drone step? I was thinking of just adding |
Also, I see it passes |
@techknowlogick I added the dependencies, can you check if that fixes the issue? I prefer it that way instead of in drone because one can release outside of drone too and less calls to |
@lunny not sure what you mean. can you point me to that warning? |
see https://github.com/go-gitea/gitea/blob/master/docs/content/doc/installation/from-source.en-us.md and find |
generate
is now implicit duringbuild
since #9114, it is no longer necessary or desired to specify it explicitely.