Skip to content

Commit

Permalink
Fix build_snapshot for Apple silicon laptops (elastic#204951)
Browse files Browse the repository at this point in the history
## Summary

`build_snapshot` was using wrong Gradle task when building ES from
source for Apple silicon laptops

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
2 people authored and crespocarlos committed Jan 8, 2025
1 parent 18aa67a commit c32940a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/kbn-es/src/utils/build_snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export async function buildSnapshot({
export function archiveForPlatform(platform: NodeJS.Platform, license: string) {
switch (platform) {
case 'darwin':
return { format: 'tar', ext: 'tar.gz', task: 'darwin-tar', platform: 'darwin' };
return {
format: 'tar',
ext: 'tar.gz',
task: os.arch() === 'arm64' ? 'darwin-aarch64-tar' : 'darwin-tar',
platform: 'darwin',
};
case 'win32':
return { format: 'zip', ext: 'zip', task: 'windows-zip', platform: 'windows' };
case 'linux':
Expand Down

0 comments on commit c32940a

Please sign in to comment.