yxxhero and Claude
ad81e4231e
build: update Go to 1.27.1 and modernize the codebase ( #2798 )
...
Toolchain and CI:
- Bump go directive from 1.26.8 to 1.27.1 (go.mod)
- Use golang:1.27-alpine builder images in all Dockerfiles
- Bump golangci-lint to v2.13.2 (first release with go1.27 support)
- Add CI gate: `go fix -diff` fails when outdated Go patterns are
detected (locally: `make check-modernize`)
Note: darwin binaries now require macOS 13 or later.
Lint fixes required by golangci-lint v2.13.2:
- goconst: ignore tests (all 436 findings were test-only; goconst
got stricter since v2.12 and this option was added for it)
- openai.go: keep deprecated MaxTokens deliberately with a nolint
rationale (max_tokens is the only form universally supported by
OpenAI-compatible backends like One-API, LiteLLM, Ollama shim)
- state.go: drop always-nil flags param from appendChartVersionFlags
(renamed to chartVersionFlags, unparam)
Modernization (go fix ./..., 62 files):
- interface{} -> any, maps.Copy, strings.SplitSeq, range-over-int,
builtin min/max, slices.Contains/ContainsFunc/Sort, WaitGroup.Go,
reflect.Type.Fields(), new(expr)
- exit_error.go: strings.Builder + fmt.Fprintf instead of string
concatenation and WriteString(fmt.Sprintf(...)) (QF1012)
- chart_dependency.go: strings.CutLast for OCI dependency helpers
Signed-off-by: yxxhero <aiopsclub@163.com >
Co-authored-by: Claude <noreply@anthropic.com >
2026-09-16 13:29:02 +08:00
dependabot[bot] and yxxhero
d26d909a5e
build(deps): bump golangci/golangci-lint-action from 6 to 7 ( #1975 )
...
* build(deps): bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* refactor(.github/workflows/ci.yaml): update golangci-lint version to v2.0.2
Signed-off-by: yxxhero <aiopsclub@163.com >
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: yxxhero <aiopsclub@163.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yxxhero <aiopsclub@163.com >
2025-03-28 07:52:06 +08:00
yxxhero
5d29f03782
Remove all v0.x references ( #1919 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* refactor(two_pass_renderer): remove unused imports and functions
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
---------
Signed-off-by: yxxhero <aiopsclub@163.com >
2025-03-08 07:43:21 -06:00
yxxhero
63e2684ade
Revert "cleanup: remove all about v0.x" ( #1918 )
...
Revert "cleanup: remove all about v0.x (#1903 )"
This reverts commit d7bcd5e998 .
Signed-off-by: yxxhero <aiopsclub@163.com >
2025-02-08 18:25:16 +08:00
yxxhero
d7bcd5e998
cleanup: remove all about v0.x ( #1903 )
...
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* refactor(two_pass_renderer): remove unused imports and functions
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
* fix tests
Signed-off-by: yxxhero <aiopsclub@163.com >
---------
Signed-off-by: yxxhero <aiopsclub@163.com >
2025-02-05 13:50:16 -05:00
yxxhero
f3c49ae53a
feat(pkg/policy): improve TopKeys function handling ( #1730 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2024-10-09 20:57:03 +08:00
Peoplelike
b6ad96f105
optimize code ( #1694 )
...
* fix something
Signed-off-by: lijianxin <1430473452@qq.com >
2024-09-07 12:43:41 +08:00
Zubair Haque
dc5c4a80ba
chore: enhance TopKeys function & adding test cases for malformed lines scenario in TopKeys func ( #1654 )
2024-08-05 09:27:42 +08:00
drivelikebrazil
f09855d40e
Remove config key order check ( #1504 )
...
* Make bases and environments equivalent priority config keys
Signed-off-by: Richard Swearingen <drivelikebrazil@gmail.com >
2024-05-08 06:24:08 +08:00
petelock
00dc5d9116
fix checker error message ( #1266 )
...
Signed-off-by: petelock <pete2387@gmail.com >
2024-01-04 17:31:00 +08:00
yxxhero
0199b5f764
fix checker for empty array case ( #1153 )
2023-11-20 16:34:24 +08:00
yxxhero
34ccbf9056
fix issue 1093 ( #1094 )
2023-10-25 10:42:47 +08:00
yxxhero
48e48aa568
feat: add friendly tips for helmfile config order ( #710 )
...
* feat: add kindful tips for helmfile config order
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-08-06 22:22:36 +08:00
yxxhero
c55fa0f765
Replace interface{} by any ( #901 )
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2023-06-16 10:49:05 +09:00
Yusuke Kuoka
8f2d97a1b3
Relax the forbid-env-with-releases policy for plain helmfile.yaml on v1 ( #684 )
2023-02-09 07:02:50 +08:00
Yusuke Kuoka
8c130a4fa7
fix: Make the forbid-env-with-releases policy strict on v1 ( #683 )
...
Currently, both v0 and v1 warns any usage of environments with releases within the same helmfile part.
It should rather be an error for v1, as proposed in https://github.com/helmfile/helmfile/blob/main/docs/proposals/towards-1.0.md#forbid-the-use-of-environments-and-releases-within-a-single-helmfileyaml-part .
Follow-up for #592
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com >
2023-02-08 09:09:12 +08:00
yxxhero
d8d0bf830a
Add helmfile state validate policy ( #592 )
2022-12-21 10:49:31 +08:00