Skip to content

Commit fef67d4

Browse files
Merge pull request #2526 from keboola/jt-go-1.26
2 parents d1e0823 + 20c0cca commit fef67d4

74 files changed

Lines changed: 232 additions & 266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- Focus on filesystem operations, git integration, and data streaming
1616

1717
# Tech Stack
18-
- **Language**: Go 1.25+
18+
- **Language**: Go 1.26+
1919
- **Storage**: ETCD v3.6
2020
- **Key Libraries**:
2121
- `go.etcd.io/etcd/client/v3`: ETCD client

.github/workflows/provisioning-cli-s3.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
terraform_version: ${{ env.TF_VERSION }}
4646

4747
- name: Configure AWS Credentials
48-
uses: aws-actions/configure-aws-credentials@v5
48+
uses: aws-actions/configure-aws-credentials@v6
4949
with:
5050
role-to-assume: arn:aws:iam::813746015128:role/kbc-github-actions-admin-role
5151
aws-region: eu-central-1
@@ -81,7 +81,7 @@ jobs:
8181
terraform_version: ${{ env.TF_VERSION }}
8282

8383
- name: Configure AWS Credentials
84-
uses: aws-actions/configure-aws-credentials@v5
84+
uses: aws-actions/configure-aws-credentials@v6
8585
with:
8686
role-to-assume: arn:aws:iam::455460941449:role/kbc-github-actions-read-only-role
8787
aws-region: eu-central-1
@@ -111,7 +111,7 @@ jobs:
111111
terraform_version: ${{ env.TF_VERSION }}
112112

113113
- name: Configure AWS Credentials
114-
uses: aws-actions/configure-aws-credentials@v5
114+
uses: aws-actions/configure-aws-credentials@v6
115115
with:
116116
role-to-assume: arn:aws:iam::455460941449:role/kbc-github-actions-admin-role
117117
aws-region: eu-central-1

.github/workflows/release-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
name: release-targets
155155

156156
- name: Configure AWS Credentials to CLI Assets Account
157-
uses: aws-actions/configure-aws-credentials@v5
157+
uses: aws-actions/configure-aws-credentials@v6
158158
with:
159159
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
160160
aws-region: ${{ env.AWS_REGION }}
@@ -309,7 +309,7 @@ jobs:
309309
run: rm -rf ${HOME}/.aws
310310

311311
- name: Configure AWS Credentials to CLI Assets Account
312-
uses: aws-actions/configure-aws-credentials@v5
312+
uses: aws-actions/configure-aws-credentials@v6
313313
with:
314314
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
315315
aws-region: ${{ env.AWS_ROLE_REGION }}
@@ -471,7 +471,7 @@ jobs:
471471
$msi
472472
473473
- name: Configure AWS Credentials to CLI Assets Account
474-
uses: aws-actions/configure-aws-credentials@v5
474+
uses: aws-actions/configure-aws-credentials@v6
475475
with:
476476
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
477477
aws-region: ${{ env.AWS_ROLE_REGION }}

.github/workflows/revert-cli-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v6
6363

6464
- name: Configure AWS Credentials to CLI Assets Account
65-
uses: aws-actions/configure-aws-credentials@v5
65+
uses: aws-actions/configure-aws-credentials@v6
6666
with:
6767
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
6868
aws-region: ${{ env.AWS_REGION }}
@@ -127,7 +127,7 @@ jobs:
127127
run: rm -rf ${HOME}/.aws
128128

129129
- name: Configure AWS Credentials to CLI Assets Account
130-
uses: aws-actions/configure-aws-credentials@v5
130+
uses: aws-actions/configure-aws-credentials@v6
131131
with:
132132
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
133133
aws-region: ${{ env.AWS_ROLE_REGION }}

PROJECT_CONTEXT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The project uses ETCD for distributed storage and synchronization, with a custom
3636

3737
### Docker Setup
3838
- Docker and Docker Compose
39-
- Go 1.25+
39+
- Go 1.26+
4040
- Task
4141

4242
For Docker-based development, see [Development Guide](docs/development.md).

api/stream/design.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
_ "github.com/keboola/keboola-as-code/internal/pkg/service/common/goaextension/oneof"
2424
_ "github.com/keboola/keboola-as-code/internal/pkg/service/common/goaextension/operationid"
2525
. "github.com/keboola/keboola-as-code/internal/pkg/service/common/goaextension/token"
26-
"github.com/keboola/keboola-as-code/internal/pkg/service/common/ptr"
2726
"github.com/keboola/keboola-as-code/internal/pkg/service/stream/definition"
2827
"github.com/keboola/keboola-as-code/internal/pkg/service/stream/definition/key"
2928
"github.com/keboola/keboola-as-code/internal/pkg/service/stream/definition/repository/sink"
@@ -1387,7 +1386,7 @@ var TableColumns = Type("TableColumns", ArrayOf(TableColumn), func() {
13871386
column.IP{Name: "ip-col"},
13881387
column.Headers{Name: "headers-col"},
13891388
column.Body{Name: "body-col"},
1390-
column.Path{Name: "path-col", Path: `foo.bar[0]`, DefaultValue: ptr.Ptr(""), RawString: true},
1389+
column.Path{Name: "path-col", Path: `foo.bar[0]`, DefaultValue: new(""), RawString: true},
13911390
column.Template{Name: "template-col", Template: column.TemplateConfig{Language: "jsonnet", Content: `body.foo + "-" + body.bar`}},
13921391
})
13931392
})

docs/local_development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prerequisites
44

5-
- Go 1.25+
5+
- Go 1.26+
66
- ETCD v3.6
77
- Git
88
- Task
@@ -13,7 +13,7 @@
1313
```bash
1414
# For Ubuntu/Debian
1515
sudo apt-get update
16-
sudo apt-get install golang-1.25
16+
sudo apt-get install golang-1.26
1717

1818
# For Arch Linux
1919
sudo pacman -S go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/keboola/keboola-as-code
22

3-
go 1.25.4
3+
go 1.26.0
44

55
replace github.com/google/go-jsonnet => github.com/keboola/go-jsonnet v0.20.1-0.20251107122148-3958bfe6bade
66

internal/pkg/diff/reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (r *Reporter) relationsDiff(remoteValue, localValue reflect.Value) ([]strin
104104
relationsType := reflect.TypeFor[model.Relations]()
105105
if remoteValue.IsValid() && localValue.IsValid() && remoteValue.Type().ConvertibleTo(relationsType) && localValue.Type().ConvertibleTo(relationsType) {
106106
onlyInRemote, onlyInLocal := remoteValue.Interface().(model.Relations).Diff(localValue.Interface().(model.Relations))
107-
var out []string
107+
out := make([]string, 0, len(onlyInRemote)+len(onlyInLocal))
108108
for _, v := range onlyInRemote {
109109
out = append(out, fmt.Sprintf("%s %s", OnlyInRemoteMark, r.relationToString(v, r.remoteObject, r.objects.RemoteObjects())))
110110
}

internal/pkg/encoding/json/schema/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func getDefaultValueFor(schema *jsonschema.Schema, level int) any {
111111
func buildOrderedMap(schema *jsonschema.Schema, level int) any {
112112
values := orderedmap.New()
113113
if schema.Properties != nil {
114-
props := make([]*jsonschema.Schema, 0)
114+
props := make([]*jsonschema.Schema, 0, len(schema.Properties))
115115
keys := make(map[string]string)
116116
for key, prop := range schema.Properties {
117117
props = append(props, prop)

0 commit comments

Comments
 (0)