1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00
Commit Graph

7 Commits

Author SHA1 Message Date
Robert Kaussow b9b3538d81 Fix embed for web ui chunks (#6608)
By default, Go intentionally ignores any files and directories that start with a dot (.) or an underscore (_) when using `embed`. Recently (maybe due to a dependency update to Vite, Rollup, or the Intlify/i18n plugin), the frontend build process started splitting out some JavaScript code into separate chunks that are prefixed with an underscore, such as `_intlify-i18n-19-CTBJX147.js`.

Changing the directive to `//go:embed all:dist/*` (using the all: prefix) tells Go to include everything matching the pattern, including files that start with `_` or `.`, successfully embedding the missing chunks.
2026-05-18 09:20:44 +02:00
6543 971ab734af Allow packagers to set WebUI root to custom path (#5809)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2025-12-17 12:37:24 +01:00
qwerty287 8cdac56d8f Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
Lauris BH 46452fbd84 Update Go dependencies and minimal Go version to 1.20 (#1650)
Signed-off-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@obermui.de>
2023-03-21 00:48:15 +01:00
6543 08a99152d6 Dedup code and migrate away from deprecated funcs (#1141)
Co-authored-by: Anbraten <anton@ju60.de>
2022-08-30 01:14:07 +02:00
Lukas 680d003a29 Add linter revive (#554)
* Add linter revive

* Add underscore to variable name to prevent shadowing

* Remove unnecessary leading underscore

* Revert changes to vendor file

* export ConfigFetcher as interface

* no 'yoda conditions'

* rename envsubst

Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:22:06 +01:00
Anbraten ed6d3f3cea Use go embed for web files and remove httptreemux (#382)
- replace togo with go embed
- replace httptreemux with gin

closes #308
2021-09-29 17:34:56 +02:00