From de294459b971a91d18e3660cd87af8f8cf82827d Mon Sep 17 00:00:00 2001 From: Johannes Edmeier Date: Tue, 14 Apr 2026 12:47:19 +0200 Subject: [PATCH] chore: bump Go to 1.26.2 --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 4 ++++ extdebug/action.go | 20 ++++++++++---------- go.mod | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d4288e..3a8e459 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: extension-ci: uses: steadybit/extension-kit/.github/workflows/reusable-extension-ci.yml@main # NOSONAR githubactions:S7637 - our own action with: - go_version: '^1.25.9' + go_version: '^1.26.2' build_linux_packages: false VERSION_BUMPER_APPID: ${{ vars.GH_APP_STEADYBIT_APP_ID }} secrets: diff --git a/CHANGELOG.md b/CHANGELOG.md index 880cd06..5aef119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## (next) + +- Bump Go to 1.26.2 + ## v1.0.16 - Bump Go to 1.25.9 diff --git a/extdebug/action.go b/extdebug/action.go index b626fe0..56dd3ff 100644 --- a/extdebug/action.go +++ b/extdebug/action.go @@ -59,15 +59,15 @@ func (l *debugAction) Describe() action_kit_api.ActionDescription { Label: "Debug Logs", Description: "Collects debug information", Version: extbuild.GetSemverVersionStringOrUnknown(), - Icon: extutil.Ptr(actionIcon), - Technology: extutil.Ptr("Debug"), - TargetSelection: extutil.Ptr(action_kit_api.TargetSelection{ + Icon: new(actionIcon), + Technology: new("Debug"), + TargetSelection: new(action_kit_api.TargetSelection{ TargetType: clusterTargetType, QuantityRestriction: extutil.Ptr(action_kit_api.QuantityRestrictionAll), - SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{ + SelectionTemplates: new([]action_kit_api.TargetSelectionTemplate{ { Label: "cluster name", - Description: extutil.Ptr("Find service by cluster"), + Description: new("Find service by cluster"), Query: "k8s.cluster-name=\"\"", }, }), @@ -82,10 +82,10 @@ func (l *debugAction) Describe() action_kit_api.ActionDescription { // The parameters for the action Parameters: []action_kit_api.ActionParameter{}, - Status: extutil.Ptr(action_kit_api.MutatingEndpointReferenceWithCallInterval{ - CallInterval: extutil.Ptr("1s"), + Status: new(action_kit_api.MutatingEndpointReferenceWithCallInterval{ + CallInterval: new("1s"), }), - Stop: extutil.Ptr(action_kit_api.MutatingEndpointReference{}), + Stop: new(action_kit_api.MutatingEndpointReference{}), } } @@ -141,7 +141,7 @@ func (l *debugAction) Status(_ context.Context, state *DebugActionState) (*actio if err == nil { // file exists content, err := extfile.File2Base64(debugRun.ResultZip) if err != nil { - return nil, extutil.Ptr(extension_kit.ToError("Failed to open content file", err)) + return nil, new(extension_kit.ToError("Failed to open content file", err)) } artifacts = append(artifacts, action_kit_api.Artifact{ Label: "$(experimentKey)_$(executionId)_" + state.ExecutionId.String() + "_steadybit-debug.tar.gz", @@ -151,7 +151,7 @@ func (l *debugAction) Status(_ context.Context, state *DebugActionState) (*actio } return &action_kit_api.StatusResult{ Completed: true, - Artifacts: extutil.Ptr(artifacts), + Artifacts: new(artifacts), }, nil } } diff --git a/go.mod b/go.mod index 5b1e036..63ced72 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/steadybit/extension-debug -go 1.25.7 +go 1.26.2 require ( github.com/KimMachineGun/automemlimit v0.7.5