Skip to content

Commit fbbcc0b

Browse files
kruskalldmathieuv1v
authored
feat: bump go to 1.25.7 (#740)
* feat: bump go to 1.25.7 * feat: bump terraform-docs * Update go.mod * feat: bump x deps * try upgrading goreleaser * migrate goreleased config * Update .goreleaser.yaml Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * add explicitly run build and dist --------- Co-authored-by: dmathieu <damien.mathieu@elastic.co> Co-authored-by: Damien Mathieu <42@dmathieu.com> Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
1 parent 5942308 commit fbbcc0b

5 files changed

Lines changed: 173 additions & 209 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
goreleaser: 'true'
5050

5151
- name: Build
52-
run: make dist
52+
run: make build dist
5353

5454
- uses: actions/upload-artifact@v6
5555
if: always()

.goreleaser.yaml

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
project_name: apm-lambda-extension
22

3+
version: 2
34
before:
45
hooks:
56
- make check-licenses
@@ -22,7 +23,7 @@ builds:
2223

2324
archives:
2425
- id: zip
25-
format: zip
26+
formats: ['zip']
2627
name_template: |-
2728
{{ .Tag }}-{{ .Os }}-{{ .Arch }}
2829
files:
@@ -35,52 +36,46 @@ archives:
3536
builds_info:
3637
mtime: "{{ .CommitTimestamp }}"
3738

38-
dockers:
39+
dockers_v2:
3940

4041
- &default-docker-image
4142
id: linux-amd64-image
42-
use: buildx
43-
goos: linux
44-
goarch: amd64
45-
image_templates:
46-
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64:{{ trimprefix .Tag "v" }}'
47-
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64:latest"
48-
build_flag_templates:
49-
- "--platform=linux/amd64"
50-
- "--build-arg=EXTENSION_FILE={{ .ProjectName }}"
51-
- "--build-arg=COMMIT_TIMESTAMP={{ .CommitTimestamp }}"
52-
- "--label=org.opencontainers.image.created={{ .Date }}"
53-
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
54-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
55-
- "--label=org.opencontainers.image.version={{ .Version }}"
43+
platforms:
44+
- 'linux/amd64'
45+
images:
46+
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64'
47+
tags:
48+
- 'latest'
49+
- '{{ trimprefix .Tag "v" }}'
50+
labels:
51+
'org.opencontainers.image.created': '{{ .Date }}'
52+
'org.opencontainers.image.title': '{{ .ProjectName }}'
53+
'org.opencontainers.image.revision': '{{ .FullCommit }}'
54+
'org.opencontainers.image.version': '{{ .Version }}'
55+
build_args:
56+
'EXTENSION_FILE': 'linux/amd64/extensions/{{ .ProjectName }}'
57+
'COMMIT_TIMESTAMP': '{{ .CommitTimestamp }}'
5658
extra_files:
5759
- NOTICE.txt
5860
- dependencies.asciidoc
5961

6062
- <<: *default-docker-image
6163
id: linux-arm64-image
62-
goarch: arm64
63-
image_templates:
64-
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64:{{ trimprefix .Tag "v" }}'
65-
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64:latest"
66-
build_flag_templates:
67-
- "--platform=linux/arm64"
68-
- "--build-arg=EXTENSION_FILE={{ .ProjectName }}"
69-
- "--build-arg=COMMIT_TIMESTAMP={{ .CommitTimestamp }}"
70-
- "--label=org.opencontainers.image.created={{ .Date }}"
71-
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
72-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
73-
- "--label=org.opencontainers.image.version={{ .Version }}"
74-
75-
docker_manifests:
76-
- name_template: '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}:{{ trimprefix .Tag "v" }}'
77-
image_templates:
78-
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64:{{ trimprefix .Tag "v" }}'
79-
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64:{{ trimprefix .Tag "v" }}'
80-
- name_template: '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}:latest'
81-
image_templates:
82-
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64:latest"
83-
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64:latest"
64+
platforms:
65+
- 'linux/arm64'
66+
images:
67+
- '{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64'
68+
tags:
69+
- 'latest'
70+
- '{{ trimprefix .Tag "v" }}'
71+
labels:
72+
'org.opencontainers.image.created': '{{ .Date }}'
73+
'org.opencontainers.image.title': '{{ .ProjectName }}'
74+
'org.opencontainers.image.revision': '{{ .FullCommit }}'
75+
'org.opencontainers.image.version': '{{ .Version }}'
76+
build_args:
77+
'EXTENSION_FILE': 'linux/arm64/extensions/{{ .ProjectName }}'
78+
'COMMIT_TIMESTAMP': '{{ .CommitTimestamp }}'
8479

8580
publishers:
8681
- name: publish-aws

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL = /bin/bash -eo pipefail
22

3-
GORELEASER_VERSION = "v1.19.2"
3+
GORELEASER_VERSION = "v2.13.3"
44
GOLANGCI_LINT_VERSION = "v1.64.4"
55
export DOCKER_IMAGE_NAME = observability/apm-lambda-extension
66
export DOCKER_REGISTRY = docker.elastic.co
@@ -11,18 +11,18 @@ clean:
1111

1212
.PHONY: dist
1313
dist:
14-
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --clean
14+
@go run github.com/goreleaser/goreleaser/v2@$(GORELEASER_VERSION) release --snapshot --clean
1515

1616
.PHONY: zip
1717
zip:
18-
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --snapshot --clean --skip-docker
18+
@go run github.com/goreleaser/goreleaser/v2@$(GORELEASER_VERSION) release --snapshot --clean --skip-docker
1919

2020
build:
21-
@go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) build --snapshot --clean
21+
@go run github.com/goreleaser/goreleaser/v2@$(GORELEASER_VERSION) build --snapshot --clean
2222

2323
.PHONY: release
2424
release:
25-
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --clean
25+
go run github.com/goreleaser/goreleaser/v2@$(GORELEASER_VERSION) release --clean
2626

2727
.PHONY: release-notes
2828
release-notes:

go.mod

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/elastic/apm-aws-lambda
22

3-
go 1.24.2
3+
go 1.25.7
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.41.1
@@ -24,10 +24,10 @@ tool (
2424
)
2525

2626
require (
27-
dario.cat/mergo v1.0.1 // indirect
28-
github.com/BurntSushi/toml v1.4.0 // indirect
27+
dario.cat/mergo v1.0.2 // indirect
28+
github.com/BurntSushi/toml v1.5.0 // indirect
2929
github.com/Masterminds/goutils v1.1.1 // indirect
30-
github.com/Masterminds/semver/v3 v3.3.0 // indirect
30+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
3131
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
3232
github.com/agext/levenshtein v1.2.3 // indirect
3333
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
@@ -46,63 +46,58 @@ require (
4646
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
4747
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4848
github.com/elastic/go-licenser v0.4.2 // indirect
49-
github.com/fatih/color v1.17.0 // indirect
50-
github.com/fsnotify/fsnotify v1.7.0 // indirect
49+
github.com/fatih/color v1.18.0 // indirect
50+
github.com/fsnotify/fsnotify v1.9.0 // indirect
51+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
5152
github.com/golang/protobuf v1.5.4 // indirect
52-
github.com/google/go-cmp v0.6.0 // indirect
53+
github.com/google/go-cmp v0.7.0 // indirect
5354
github.com/google/licenseclassifier v0.0.0-20250213175939-b5d1a3369749 // indirect
5455
github.com/hashicorp/go-hclog v1.6.3 // indirect
55-
github.com/hashicorp/go-plugin v1.6.1 // indirect
56-
github.com/hashicorp/go-version v1.7.0 // indirect
56+
github.com/hashicorp/go-plugin v1.7.0 // indirect
57+
github.com/hashicorp/go-version v1.8.0 // indirect
5758
github.com/hashicorp/hcl v1.0.0 // indirect
58-
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
59-
github.com/hashicorp/yamux v0.1.1 // indirect
59+
github.com/hashicorp/hcl/v2 v2.24.0 // indirect
60+
github.com/hashicorp/yamux v0.1.2 // indirect
6061
github.com/huandu/xstrings v1.5.0 // indirect
6162
github.com/iancoleman/orderedmap v0.3.0 // indirect
6263
github.com/inconshreveable/mousetrap v1.1.0 // indirect
63-
github.com/magiconair/properties v1.8.7 // indirect
64-
github.com/mattn/go-colorable v0.1.13 // indirect
64+
github.com/mattn/go-colorable v0.1.14 // indirect
6565
github.com/mattn/go-isatty v0.0.20 // indirect
6666
github.com/mitchellh/copystructure v1.2.0 // indirect
6767
github.com/mitchellh/go-homedir v1.1.0 // indirect
68-
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
6968
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
70-
github.com/mitchellh/mapstructure v1.5.0 // indirect
7169
github.com/mitchellh/reflectwalk v1.0.2 // indirect
72-
github.com/oklog/run v1.1.0 // indirect
73-
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
70+
github.com/oklog/run v1.2.0 // indirect
71+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
7472
github.com/pkg/errors v0.9.1 // indirect
7573
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
76-
github.com/sagikazarmark/locafero v0.6.0 // indirect
77-
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
74+
github.com/sagikazarmark/locafero v0.12.0 // indirect
7875
github.com/sergi/go-diff v1.4.0 // indirect
7976
github.com/shopspring/decimal v1.4.0 // indirect
80-
github.com/sourcegraph/conc v0.3.0 // indirect
81-
github.com/spf13/afero v1.11.0 // indirect
82-
github.com/spf13/cast v1.7.0 // indirect
83-
github.com/spf13/cobra v1.8.1 // indirect
84-
github.com/spf13/pflag v1.0.5 // indirect
85-
github.com/spf13/viper v1.19.0 // indirect
77+
github.com/spf13/afero v1.15.0 // indirect
78+
github.com/spf13/cast v1.10.0 // indirect
79+
github.com/spf13/cobra v1.10.2 // indirect
80+
github.com/spf13/pflag v1.0.10 // indirect
81+
github.com/spf13/viper v1.21.0 // indirect
8682
github.com/subosito/gotenv v1.6.0 // indirect
87-
github.com/terraform-docs/terraform-config-inspect v0.0.0-20210728164355-9c1f178932fa // indirect
88-
github.com/terraform-docs/terraform-docs v0.20.0 // indirect
83+
github.com/terraform-docs/terraform-config-inspect v0.0.0-20250408153412-5b88c7ed5b63 // indirect
84+
github.com/terraform-docs/terraform-docs v0.21.0 // indirect
8985
github.com/tidwall/match v1.1.1 // indirect
9086
github.com/tidwall/pretty v1.2.1 // indirect
91-
github.com/zclconf/go-cty v1.15.0 // indirect
87+
github.com/zclconf/go-cty v1.17.0 // indirect
9288
go.elastic.co/go-licence-detector v0.10.0 // indirect
9389
go.uber.org/multierr v1.11.0 // indirect
94-
golang.org/x/crypto v0.42.0 // indirect
95-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
96-
golang.org/x/mod v0.29.0 // indirect
97-
golang.org/x/net v0.44.0 // indirect
98-
golang.org/x/sync v0.17.0 // indirect
99-
golang.org/x/sys v0.36.0 // indirect
100-
golang.org/x/text v0.29.0 // indirect
101-
golang.org/x/tools v0.37.0 // indirect
102-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
103-
google.golang.org/grpc v1.66.2 // indirect
104-
google.golang.org/protobuf v1.34.2 // indirect
105-
gopkg.in/ini.v1 v1.67.0 // indirect
90+
go.yaml.in/yaml/v3 v3.0.4 // indirect
91+
golang.org/x/crypto v0.47.0 // indirect
92+
golang.org/x/mod v0.32.0 // indirect
93+
golang.org/x/net v0.49.0 // indirect
94+
golang.org/x/sync v0.19.0 // indirect
95+
golang.org/x/sys v0.40.0 // indirect
96+
golang.org/x/text v0.33.0 // indirect
97+
golang.org/x/tools v0.41.0 // indirect
98+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
99+
google.golang.org/grpc v1.77.0 // indirect
100+
google.golang.org/protobuf v1.36.11 // indirect
106101
gopkg.in/yaml.v3 v3.0.1 // indirect
107-
mvdan.cc/xurls/v2 v2.5.0 // indirect
102+
mvdan.cc/xurls/v2 v2.6.0 // indirect
108103
)

0 commit comments

Comments
 (0)