From 8da26e932d714b68cc10fd13f3a1dcc15bc05085 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 4 Nov 2021 16:16:21 +0000 Subject: [PATCH 1/2] Packaging: rename arm64 suffix to aarch64 --- dev-tools/mage/pkgtypes.go | 2 +- x-pack/elastic-agent/magefile.go | 2 +- x-pack/elastic-agent/pkg/artifact/artifact.go | 2 +- x-pack/elastic-agent/pkg/artifact/download/http/elastic_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-tools/mage/pkgtypes.go b/dev-tools/mage/pkgtypes.go index c2c454c873d1..c2d8c32b4ce9 100644 --- a/dev-tools/mage/pkgtypes.go +++ b/dev-tools/mage/pkgtypes.go @@ -162,7 +162,7 @@ var OSArchNames = map[string]map[PackageType]map[string]string{ "armv5": "armv5", "armv6": "armv6", "armv7": "armv7", - "arm64": "arm64", + "arm64": "aarch64", "mips": "mips", "mipsle": "mipsel", "mips64": "mips64", diff --git a/x-pack/elastic-agent/magefile.go b/x-pack/elastic-agent/magefile.go index 102ba5b86b0e..18822b64fffe 100644 --- a/x-pack/elastic-agent/magefile.go +++ b/x-pack/elastic-agent/magefile.go @@ -308,7 +308,7 @@ func Package() { }{ {"darwin/amd64", "darwin-x86_64.tar.gz"}, {"linux/amd64", "linux-x86_64.tar.gz"}, - {"linux/arm64", "linux-arm64.tar.gz"}, + {"linux/arm64", "linux-aarch64.tar.gz"}, {"windows/amd64", "windows-x86_64.zip"}, } diff --git a/x-pack/elastic-agent/pkg/artifact/artifact.go b/x-pack/elastic-agent/pkg/artifact/artifact.go index 5f8a099ed6a6..ff81fc326f1f 100644 --- a/x-pack/elastic-agent/pkg/artifact/artifact.go +++ b/x-pack/elastic-agent/pkg/artifact/artifact.go @@ -15,7 +15,7 @@ import ( var packageArchMap = map[string]string{ "linux-binary-32": "linux-x86.tar.gz", "linux-binary-64": "linux-x86_64.tar.gz", - "linux-binary-arm64": "linux-arm64.tar.gz", + "linux-binary-arm64": "linux-aarch64.tar.gz", "windows-binary-32": "windows-x86.zip", "windows-binary-64": "windows-x86_64.zip", "darwin-binary-32": "darwin-x86_64.tar.gz", diff --git a/x-pack/elastic-agent/pkg/artifact/download/http/elastic_test.go b/x-pack/elastic-agent/pkg/artifact/download/http/elastic_test.go index 747324a7cc7d..d0b321da3d1d 100644 --- a/x-pack/elastic-agent/pkg/artifact/download/http/elastic_test.go +++ b/x-pack/elastic-agent/pkg/artifact/download/http/elastic_test.go @@ -170,7 +170,7 @@ func getElasticCoClient() http.Client { fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "i686.rpm"): struct{}{}, fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "x86_64.rpm"): struct{}{}, fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "linux-x86.tar.gz"): struct{}{}, - fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "linux-arm64.tar.gz"): struct{}{}, + fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "linux-aarch64.tar.gz"): struct{}{}, fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "linux-x86_64.tar.gz"): struct{}{}, fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "windows-x86.zip"): struct{}{}, fmt.Sprintf("%s-%s-%s", beatSpec.Cmd, version, "windows-x86_64.zip"): struct{}{}, From 83084a4f73733d713401a79d86277679916a2291 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 8 Nov 2021 11:11:08 +0000 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index b0b60113c7ca..5a5a932e4fb6 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -27,6 +27,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - add_process_metadata processor: Replace usage of deprecated `process.ppid` field with `process.parent.pid`. {pull}28620[28620] - add_docker_metadata processor: Replace usage of deprecated `process.ppid` field with `process.parent.pid`. {pull}28620[28620] - Index template's default_fields setting is only populated with ECS fields. {pull}28596[28596] {issue}28215[28215] +- tar.gz packages for ARM64 will now use the suffix `aarch64` rather than `arm64`. {pull}28813[28813] *Auditbeat*