-
-
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
Generate go-licenses during tidy again #21108
Conversation
We can not have the `frontend` target depend on golang because of they way drone is set up. Move the `go-licenses` generation back into `tidy` where it will now also be checked for consistency during `tidy-check`.
No. Do not do this during Now that we no longer vendor dependencies we have to run Just make it part of |
Why are you even running
That will introduce another complexity layer where we need to run go -> node -> go tools and thus require an additional step on CI, I'm against such additional complexity. I'd either run it after |
At least with the way vscode is set up for me I have the vendor directory. This is highly helpful when looking for bugs & errors, otherwise when there is a bug report with a random error how do find where the problem has come from? Without the vendor directory grep will fail to find the error. VSCode will not be able to jump directly to the affected line. Do you suggest we grep over the whole of pkgs? How do you propose I change my way of development and bug fixing to cope with new process?
The license file is a GENERATED file. It belongs in GENERATE. |
Don't know about vscode, but in Sublime Text, I can jump to files in GOPATH just fine and I'd be surprised if VSCode can't do the same. Grepping in dependency code is probably a valid use case, but I guess you could just manually create/delete the vendor directory for such a rare purpose. Thought I do feel such a grep is something go tools should support, e.g.
May be but the conditions for regenerations are very narrow as opposed to other generated stuff, that's why I thougth we get away with this simple method of running it after Anyways, I suggest we land this as a intermediate solution to unbreak |
I've removed the |
After latest commit, |
I guess if we really want to be sure that the licenses are generated for branch switches (which may not run tidy) and such, we'd have to add this discussed separate target for it, so would be the go (licenses) -> node (webpack) -> go (go-generate and build) chain. It'll at minimum require 1 extra step on drone in all pipelines that build. |
Should be good now I think.
|
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.
🚀
ping lg-tm |
* upstream/main: Update docs comparison.zh-cn.md (go-gitea#21035) Use form for admin purge user (go-gitea#21070) Make labels clickable in the comments section. (go-gitea#21137) Remove fomantic image module (go-gitea#21145) [skip ci] Updated translations via Crowdin Show .editorconfig errors in frontend (go-gitea#21088) Update JS dependencies and lint (go-gitea#21144) Fix PlantUML example in document (go-gitea#21142) chore(security): Support Go Vulnerability Management (go-gitea#21139) [skip ci] Updated licenses and gitignores [skip ci] Updated translations via Crowdin Improve commit status icons (go-gitea#21124) Center-aligning content of WebAuthN page (go-gitea#21127) Allow poster to choose reviewers (go-gitea#21084) Generate go-licenses during tidy again (go-gitea#21108)
We can not have the
frontend
target depend on golang because of they way drone is set up. Move thego-licenses
generation back intotidy
where it will now also be checked for consistency duringtidy-check
.(I assume all
main
branch builds should currently fail like this).The reasony why it shouldn't be treated the same as for example
go generate
is because output files are checked in. tidy is imho the optimal target to run this after.