Conversation
b1555a8 to
443aac9
Compare
|
|
443aac9 to
8571b37
Compare
|
Should be fixed, branch got messed up through rebases. |
`make go-licenses` will generate `assets/go-licenses.txt` which is then included in the webpack build. This step depends on both go and node being present, so unfortunately, I could not automate the generation by hooking it up to `tidy` as that target is triggered on CI. It should be ran from time to time, ideally after each go mod update.
1d8d41c to
dd6c035
Compare
|
Small rewrite incoming, which will sort all modules at once. |
|
Data is now passed through a JSON file to webpack, which enabled me to sort all modules at once, e.g. showing now preference for js vs. go modules like earlier. |
|
One future addition might be to parse the go module version from |
|
@silverwind add not as precond. but as command afterwards |
|
Possible, but it would require node to be installed for checks-backend > tidy-check > tidy > go-licenses |
|
Did that now, so |
|
This is still running on make vendor and it's running somewhat intermittently occasionally resulting in an empty file. I would say that this should really be in make generate as it is a generation step not tidy. |
The go-licenses check introduced in go-gitea#21034 is being run on make vendor and occassionally causes an empty go-licenses file if the vendors need to change. This should be moved to the generate task as it is a generated file. Ref go-gitea#21034 Signed-off-by: Andrew Thornton <art27@cantab.net>
* upstream/main: (22 commits) [skip ci] Updated translations via Crowdin Webhook for Wiki changes (go-gitea#20219) test: use `T.TempDir` to create temporary test directory (go-gitea#21043) Set uploadpack.allowFilter etc on gitea serv to enable partial clones with ssh (go-gitea#20902) Fix 500 on time tracking in timeline API (go-gitea#21052) Add more checks in migration code (go-gitea#21011) Fill the specified ref in webhook test payload (go-gitea#20961) [skip ci] Updated licenses and gitignores Add go licenses to licenses.txt (go-gitea#21034) Added docs for agit-setup (go-gitea#21027) Add another index for Action table on postgres (go-gitea#21033) Delete unreferenced packages when deleting a package version (go-gitea#20977) Improve arc-green code theme (go-gitea#21039) Add down key check has tribute container (go-gitea#21016) Do not add links to Posters or Assignees with ID < 0 (go-gitea#20577) [skip ci] Updated translations via Crowdin Show language name on hover (go-gitea#20923) fix: PackageMetadataVersion deps (go-gitea#21017) Fix the quick-submit for pending review comment (go-gitea#20992) Kd/ci playwright go test (go-gitea#20123) ...
…d backend component (#21061) The `go-licenses` make task introduced in #21034 is being run on make vendor and occasionally causes an empty go-licenses file if the vendors need to change. This should be moved to the generate task as it is a generated file. Now because of this change we also need to split generation into two separate steps: 1. `generate-backend` 2. `generate-frontend` In the future it would probably be useful to make `generate-swagger` part of `generate-frontend` but it's not tolerated with our .drone.yml Ref #21034 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: delvh <dev.lh@web.de>
It has to run after |
You can't really build without In fact we should be able to make make The only issue is how drone will behave. |
|
As I see it In any case, I think I will at least rewrite |
|
Go rewrite of script in #21078. |
make go-licenseswill generateassets/go-licenses.jsonwhich is then included in the webpack build.This step depends on both go and node being present, so unfortunately, I could not automate the generation by hooking it up to
tidyas that target is triggered on CI where we do not have a docker image with both go an node.It should be ran from time to time, ideally after each go mod update.