Marcus Ramberg
111c5a6eed
Disable CGO for swag fmt ( #5571 )
...
I'm seeing this when doing make build on nixos without CGO_ENABLED=0:
```sh
go run github.com/swaggo/swag/cmd/swag fmt --exclude pipeline/rpc/proto
# github.com/swaggo/swag/cmd/swag
net(.text): relocation target \_\_errno_location not defined
net(.text): relocation target getaddrinfo not defined
net(.text): relocation target free not defined
net(.text): relocation target freeaddrinfo not defined
net(.text): relocation target gai_strerror not defined
```
Works fine with CGO_ENABLED=0.
2025-09-29 22:10:08 +02:00
Robert Kaussow
2f3c4a28c1
Migrate to mockery v3 ( #5547 )
2025-09-24 13:12:55 +02:00
Robert Kaussow
8a69a1cfc6
Fix formatting and version formatting tools ( #5540 )
2025-09-23 00:36:46 +02:00
renovate[bot]
57b1be28dd
chore(deps): update golang-lang ( #5423 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-17 18:43:49 +02:00
Robert Kaussow
572f1e1861
Rework background colors for light/dark theme ( #5411 )
2025-08-14 11:42:06 +02:00
Robert Kaussow
286794a800
Bump golangci-lint to v2 ( #5034 )
2025-03-31 18:55:48 +02:00
renovate[bot]
feb2a5da2e
chore(deps): update docker.io/techknowlogick/xgo docker tag to go-1.24.x ( #4853 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-15 08:03:38 +01:00
Robert Kaussow
0c683110f5
Add docs-dependencies target to makefile ( #4719 )
2025-01-13 13:11:32 +01:00
qwerty287
81b74025d4
Update Go imports paths ( #4605 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2024-12-22 10:44:34 +01:00
Anbraten
07c8765b72
Cleanup openapi generation ( #4331 )
...
Co-authored-by: oauth <woodpecker-bot@obermui.de >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de >
2024-11-23 09:17:19 +01:00
renovate[bot]
18caee366c
chore(deps): update docker.io/techknowlogick/xgo docker tag to go-1.23.x ( #4388 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-17 08:25:32 +02:00
Patrick Schratz
3adcfb8b14
Fix renovate support for xgo ( #4276 )
2024-10-30 14:21:50 +01:00
6543
904d8da51a
Release windows binaries as zip file ( #3906 )
2024-07-14 22:59:45 +02:00
6543
8831a0e6fd
increase test timeouts
...
as the agent do exec multible steps it could happen that because of resource constrains the tests take longer thaan on a normal dev pc
2024-07-13 16:55:01 +02:00
qwerty287
92cd0d04a3
Unify DB tables/columns ( #3806 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
2024-06-27 09:32:06 +02:00
6543
402938e216
Exclude mocks from release build ( #3831 )
2024-06-25 12:23:07 +02:00
6543
96d53638f4
Allow to set dist dir using env var ( #3814 )
2024-06-24 08:29:47 +02:00
6543
1228dd9dd6
Update nix flake ( #3780 )
2024-06-12 18:02:55 +02:00
6543
4ec046e415
Spellcheck "server/*" ( #3753 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2024-06-04 08:30:54 +02:00
6543
7b3b09d628
Lint file names and directories via cSpell too ( #3703 )
2024-05-14 02:45:03 +02:00
Robert Kaussow
daf673a857
Add make target for spellcheck ( #3648 )
2024-04-26 07:51:10 +02:00
Robert Kaussow
781628816d
Fix make in_docker generate ( #3616 )
2024-04-15 17:46:44 +02:00
Robert Kaussow
5fb732a734
Switch back to latest version of golangci ( #3527 )
...
Reverts: https://github.com/woodpecker-ci/woodpecker/pull/3520
As we have enabled pre-commit updates in renovate now, I've increased
the `autoupdate_schedule` of pre-commit to the max value (there is no
way to disable it).
2024-03-21 12:22:36 +02:00
Robert Kaussow
aaf11afef7
Fix golangci-lint version pinning ( #3521 )
2024-03-20 15:28:10 +01:00
Robert Kaussow
1a3eed232f
Temp pin golangci version in makefile ( #3520 )
...
Looks like something is broken in v1.57.x, and I don't think that's
something that can be fixed on the end-user side:
https://ci.woodpecker-ci.org/repos/3780/pipeline/14131/33
```
WARN [runner] Can't process result by autogenerated_exclude processor: can't filter issue result.Issue{FromLinter:"contextcheck", Text:"Function `Start$1->runCron` should pass the context parameter", Severity:"", SourceLines:[]string(nil), Replacement:(*result.Replacement)(nil), Pkg:(*packages.Package)(0xc001871980), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"", Offset:0, Line:0, Column:0}, HunkPos:0, ExpectNoLint:false, ExpectedNoLintLinter:""}: no file path for issue
WARN [runner] Can't process result by nolint processor: can't filter issue result.Issue{FromLinter:"contextcheck", Text:"Function `Start$1->runCron` should pass the context parameter", Severity:"", SourceLines:[]string(nil), Replacement:(*result.Replacement)(nil), Pkg:(*packages.Package)(0xc001871980), LineRange:(*result.Range)(nil), Pos:token.Position{Filename:"", Offset:0, Line:0, Column:0}, HunkPos:0, ExpectNoLint:false, ExpectedNoLintLinter:""}: no file path for issue
WARN [runner/source_code] Failed to get line 0 for file : failed to get file lines cache: can't get file bytes from cache: can't read file : open : no such file or directory
```
2024-03-20 14:02:37 +01:00
Konstantin Demin
db624f8c21
build: apply "grpcnotrace" go build tag ( #3448 )
...
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com >
2024-02-28 07:28:48 +01:00
qwerty287
fc1c4d9b11
Update UI building in Makefile ( #3250 )
2024-01-22 09:10:28 +02:00
6543
9e862ae44b
Build tarball for distribution packages ( #3244 )
...
close #3219
and also make sure the `binaries` & `docker` workflow will run on tag
events, see https://ci.woodpecker-ci.org/repos/3780/pipeline/12358
2024-01-21 22:18:20 +01:00
qwerty287
f56f9cb1c0
Cleanups + prefer .yaml ( #3069 )
...
Co-authored-by: Robert Kaussow <xoxys@rknet.org >
2024-01-11 18:43:54 +01:00
6543
2e26a526b1
Add make clean-all ( #3152 )
...
Add make target, witch delete all generated stuff too
---------
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2024-01-09 17:53:56 +01:00
6543
567e83350c
Fix make release-server-xgo in CI and localy ( #3072 )
...
fix regressions of:
- #3010
- #3065
and make `make release-server-xgo` work on a manual exec (not run by ci)
2023-12-29 22:31:34 +01:00
qwerty287
a37af3eeac
Add imports checks to linter ( #3056 )
...
supersedes https://github.com/woodpecker-ci/woodpecker/pull/874
---------
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-29 21:19:42 +01:00
qwerty287
af513b5a30
Fix build output paths ( #3065 )
...
closes https://github.com/woodpecker-ci/woodpecker/issues/1766
2023-12-29 20:30:20 +01:00
6543
eefa64e2d4
Add build option to Makefile for removing static compile flags ( #3026 )
...
this make it possible to remove one patch file from
https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/testing/woodpecker
2023-12-27 14:01:56 +02:00
6543
3f1f563180
fix and lint swagger file ( #3007 )
...
Co-authored-by: qwerty287 <ndev@web.de >
2023-12-24 15:50:01 +01:00
runephilosof-karnovgroup
adb2c82790
Update go module path for major version 2 ( #2905 )
...
https://go.dev/doc/modules/release-workflow#breaking
Fixes https://github.com/woodpecker-ci/woodpecker/issues/2913 fixes
#2654
```
runephilosof@fedora:~/code/platform-woodpecker/woodpecker-repo-configurator (master)$ go get go.woodpecker-ci.org/woodpecker@v2.0.0
go: go.woodpecker-ci.org/woodpecker@v2.0.0: invalid version: module contains a go.mod file, so module path must match major version ("go.woodpecker-ci.org/woodpecker/v2")
```
---------
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
2023-12-08 08:15:08 +01:00
6543
5a7b689e30
Switch to go vanity urls ( #2706 )
...
Co-authored-by: Anbraten <anton@ju60.de >
2023-11-07 08:04:33 +01:00
Patrick Schratz
856b2ef8c7
pre-commit fixes (#2669 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de >
2023-10-31 09:14:09 +01:00
qwerty287
7136ca1999
Use golangci-lint to lint zerolog ( #2524 )
2023-10-04 15:48:56 +02:00
6543
76f932878c
make: autodetect host platform ( #2322 )
...
---
*Sponsored by Kithara Software GmbH*
2023-08-24 00:24:16 +02:00
6543
c973099c99
Refactor version handling in Makefile ( #2320 )
2023-08-23 06:53:40 +02:00
qwerty287
81ead7cbf2
Support user secrets ( #2126 )
2023-08-21 15:04:12 +02:00
6543
a5ef372190
Move "skip ci" logic into global pipeline conditions ( #2216 )
...
... and make custom errors follow std err conventions
this fix a 500 response if the whole pipeline is filtered out
2023-08-17 15:52:43 +02:00
6543
2222638b10
pipeline: fix VERSION_NUMBER
2023-08-17 14:20:43 +02:00
6543
8d19d3b8ff
Set correct version for release branch releases ( #2227 )
...
close #2225
also make the sha 10 chars long instead of 8, to match the docker tags
2023-08-16 23:58:51 +02:00
qwerty287
8cdac56d8f
Check for correct license header ( #2137 )
2023-08-10 11:06:00 +02:00
6543
f464156917
Enhance development on windows ( #2022 )
...
- make sure git store files with LF on windows too
- append .exe on windows as target for build targets too
2023-07-20 20:06:09 +03:00
6543
2e851ba4a0
Release windows build for server too ( #2012 )
...
and other build enhancements
2023-07-18 18:46:27 +02:00
6543
1eb3c033ea
increase timeout for test-server-datastore
2023-07-10 16:03:37 +02:00
6543
5139624cf8
Migrate old logs to new database schema ( #1828 )
...
address new models based on #1802
2023-06-12 22:43:14 +02:00