Make macOS package and tgz naming consistent

オープン
#26 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cmake

調査の方向性

Read platform/macos/common.cmake and platform/macos/productbuild.cmake at the referenced naming definitions, then compare how tgz and .pkg artifacts are produced. Decide on a consistent scheme for package revision and architecture naming, including the universal binary case; done means both artifact types follow the same documented convention.

索引モデルが issue の本文から書いたものです。

説明

bug cmake

It has been brought to my attention that the macOS tgz we create, containing the artifacts needed to create a .pkg, recently changed the architecture name from x86_64 to arm64, due to how the CI was creating them.
Both architectures are wrong, because the binary inside it's actually a universal one.

Looking at how we name things though I see another inconsistency. The naming format for macOS artifacts has been copied from Linux, so the macOS common.make has the following scheme:
https://github.com/osquery/osquery-packaging/blob/c089fb2d3d796d976e3b2fbea7ee69a1616b9576/platform/macos/common.cmake#L10-L11

But it's being overriden in the productbuild (or .pkg) case with:
https://github.com/osquery/osquery-packaging/blob/c089fb2d3d796d976e3b2fbea7ee69a1616b9576/platform/macos/productbuild.cmake#L10

So in the end that naming only works for the .tgz. I think that we should decide a consistent naming scheme.

On the one hand it makes sense to me to have a package release component, in all cases, to indicate that the package has been recreated with the same contents (maybe there was an issue with the CI that created the package or what not).
I'm not sure if we ever used it though, since the package creation is all pretty automatic.

For the architecture, I was initially thinking of putting universal as default for the architecture, and then let the user manually set a custom architecture if they wanted, but adding an option only for the tgz (or any other method that is not .pkg) felt weird. Mostly in how would we even name that.
If the architecture appeared in all the artifacts, then it would make more sense.
Another alternative is to simply remove it and not let the user change it (without modifying the cmake). This would assume that the package is a universal one, and so always works wherever it's being installed.

主要言語
CMake
スター
5
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

osquery/osquery-packaging のほかの issue

osquery/osquery-packaging の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。