Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ninxsoft/mist-cli #33289

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

hisaac
Copy link
Contributor

@hisaac hisaac commented Mar 17, 2025

This is a draft until I can get things working. See comments below for context.


ninxsoft/mist-cli: A Mac command-line tool that automatically downloads macOS Firmwares / Installers

$ aqua g -i ninxsoft/mist-cli

Check List

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ mist --version
2.1.1 (latest: 2.1.1)
$ mist list installer
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ Search only for latest (first) result will be 'false'...
  ├─ Include betas in search results will be 'false'...
  ├─ Only include compatible installers will be 'false'...
  ├─ Output type will be 'ascii'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS Installer versions...
  └─ Found 30 macOS Installer(s) available for download

┌───────────────┬────────────────────┬─────────┬─────────┬──────────┬────────────┬────────────┐
│ IDENTIFIER    │ NAME               │ VERSION │ BUILD   │ SIZE     │ DATE       │ COMPATIBLE │
├───────────────┼────────────────────┼─────────┼─────────┼──────────┼────────────┼────────────┤
│ 082-01336     │ macOS Sequoia      │ 15.3.2  │ 24D81   │ 15.25 GB │ 2025-03-11 │ True       │
│ 082-04099     │ macOS Sequoia      │ 15.3.2  │ 24D2082 │ 13.05 GB │ 2025-03-11 │ False      │
│ 072-70706     │ macOS Sequoia      │ 15.3.1  │ 24D70   │ 15.26 GB │ 2025-02-17 │ True       │
│ 072-08251     │ macOS Sequoia      │ 15.3    │ 24D60   │ 15.25 GB │ 2025-02-03 │ True       │
│ 072-44286     │ macOS Sequoia      │ 15.2    │ 24C101  │ 15.29 GB │ 2024-12-11 │ True       │
│ 072-84039     │ macOS Sonoma       │ 14.7.4  │ 23H420  │ 13.67 GB │ 2025-02-17 │ True       │
│ 072-61299     │ macOS Sonoma       │ 14.7.3  │ 23H417  │ 13.67 GB │ 2025-02-03 │ True       │
│ 072-36705     │ macOS Sonoma       │ 14.7.2  │ 23H311  │ 13.67 GB │ 2024-12-11 │ True       │
│ 072-83845     │ macOS Ventura      │ 13.7.4  │ 22H420  │ 12.21 GB │ 2025-02-17 │ True       │
│ 072-61270     │ macOS Ventura      │ 13.7.3  │ 22H417  │ 12.21 GB │ 2025-02-03 │ True       │
│ 072-36728     │ macOS Ventura      │ 13.7.2  │ 22H313  │ 12.22 GB │ 2024-12-11 │ True       │
│ 052-60131     │ macOS Monterey     │ 12.7.4  │ 21H1123 │ 12.42 GB │ 2024-03-18 │ True       │
│ 042-45246     │ macOS Big Sur      │ 11.7.10 │ 20G1427 │ 12.42 GB │ 2023-09-11 │ False      │
│ 001-68446     │ macOS Catalina     │ 10.15.7 │ 19H15   │ 08.75 GB │ 2020-11-11 │ False      │
│ 001-57224     │ macOS Catalina     │ 10.15.7 │ 19H4    │ 08.75 GB │ 2020-10-27 │ False      │
│ 001-51042     │ macOS Catalina     │ 10.15.7 │ 19H2    │ 08.75 GB │ 2020-09-24 │ False      │
│ 001-36801     │ macOS Catalina     │ 10.15.6 │ 19G2021 │ 08.75 GB │ 2020-08-12 │ False      │
│ 001-36735     │ macOS Catalina     │ 10.15.6 │ 19G2006 │ 08.75 GB │ 2020-08-06 │ False      │
│ 001-15219     │ macOS Catalina     │ 10.15.5 │ 19F2200 │ 08.74 GB │ 2020-06-15 │ False      │
│ 001-04366     │ macOS Catalina     │ 10.15.4 │ 19E2269 │ 08.75 GB │ 2020-05-04 │ False      │
│ 061-86291     │ macOS Catalina     │ 10.15.3 │ 19D2064 │ 08.69 GB │ 2020-03-23 │ False      │
│ 061-26589     │ macOS Mojave       │ 10.14.6 │ 18G103  │ 06.52 GB │ 2019-10-14 │ False      │
│ 061-26578     │ macOS Mojave       │ 10.14.5 │ 18F2059 │ 06.52 GB │ 2019-10-14 │ False      │
│ 041-88800     │ macOS Mojave       │ 10.14.4 │ 18E2034 │ 06.53 GB │ 2019-10-23 │ False      │
│ 041-91758     │ macOS High Sierra  │ 10.13.6 │ 17G66   │ 05.71 GB │ 2019-10-19 │ False      │
│ 10.12.6-16G29 │ macOS Sierra       │ 10.12.6 │ 16G29   │ 05.01 GB │ 2017-07-15 │ False      │
│ 10.11.6-15G31 │ OS X El Capitan    │ 10.11.6 │ 15G31   │ 06.20 GB │ 2016-05-18 │ False      │
│ 10.10.5-14F27 │ OS X Yosemite      │ 10.10.5 │ 14F27   │ 05.72 GB │ 2015-08-05 │ False      │
│ 10.8.5-12F45  │ OS X Mountain Lion │ 10.8.5  │ 12F45   │ 04.45 GB │ 2013-09-27 │ False      │
│ 10.7.5-11G63  │ Mac OS X Lion      │ 10.7.5  │ 11G63   │ 04.72 GB │ 2012-09-28 │ False      │
└───────────────┴────────────────────┴─────────┴─────────┴──────────┴────────────┴────────────┘

Sorry, something went wrong.

@hisaac
Copy link
Contributor Author

hisaac commented Mar 17, 2025

@suzuki-shunsuke I'm having issues getting this one to work, and I'm not sure how best to troubleshoot because I'm new to this project. I've opened this as a draft in a partially working state to hopefully get some advice.

As far as I understand it, I've got the files section of the yaml file set correctly, but whenever I run cmdx t ninxsoft/mist-cli, I get the following:

$ cmdx t ninxsoft/mist-cli
+ set -eu

PACKAGE=${PACKAGE#https://github.com/}

pkg=$(bash scripts/get_test_pkg.sh "$PACKAGE")
if [ "$IS_RECREATE" = true ]; then
  cmdx rm
fi

bash scripts/start.sh
bash scripts/test.sh "$pkg"
bash scripts/start.sh aqua-registry-windows
bash scripts/test-windows.sh "$pkg"
aqua exec -- aqua-registry gr

[INFO] Checking if the container aqua-registry exists
[INFO] Checking if the container aqua-registry is running
[INFO] Dockerfile isn't updated
Successfully copied 3.07kB to aqua-registry:/workspace/pkg.yaml
Successfully copied 3.07kB to aqua-registry:/workspace/registry.yaml
INFO[0000] download and unarchive the package            aqua_version=2.46.0-0 env=darwin/amd64 package_name=ninxsoft/mist-cli package_version=v2.1.1 program=aqua registry=standard

ERRO[0000] install the package                           aqua_version=2.46.0-0 env=darwin/amd64 error="unarchive a pkg format file: exec: \"pkgutil\": executable file not found in $PATH" package_name=ninxsoft/mist-cli package_version=v2.1.1 program=aqua registry=standard
FATA[0000] aqua failed                                   aqua_version=2.46.0-0 env=darwin/amd64 error="it failed to install some packages" program=aqua
[ERROR] Build failed darwin/amd64
        If you want to look into the container, please run 'cmdx con darwin amd64'
exit status 1

It seems like maybe it's not finding the pkgutil binary? But I definitely do have that binary installed, and it exists in my path at /usr/sbin/pkgutil.

Is there a verbose mode I can run these tests in so that it prints out more debug information perhaps?

@hisaac hisaac force-pushed the feat/ninxsoft/mist-cli branch from bbd4bb9 to cd6c0e7 Compare March 17, 2025 01:23

This comment was marked as resolved.

@hisaac hisaac force-pushed the feat/ninxsoft/mist-cli branch 2 times, most recently from a295059 to 8d4c350 Compare March 17, 2025 01:32
@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Mar 17, 2025

It seems like maybe it's not finding the pkgutil binary? But I definitely do have that binary installed, and it exists in my path at /usr/sbin/pkgutil.

Oh, I see. This is a known issue.
We (cmdx s and cmdx t) run tests in Linux containers, so pkgutil is unavailable.
For now, there is no way to solve this issue.
We need to ignore this error.
In CI, we run tests in VM, not containers. So CI should pass.

@suzuki-shunsuke
Copy link
Member

Thank you for your contribution!

@hisaac
Copy link
Contributor Author

hisaac commented Mar 17, 2025

Is there a way for me to test locally on macOS? Or not really?

@hisaac hisaac marked this pull request as ready for review March 17, 2025 01:57
@hisaac
Copy link
Contributor Author

hisaac commented Mar 17, 2025

ah, thanks! I did what's described there and was able to confirm it's working locally. I'll add a couple demo commands to the PR description and set it as ready for review. Thanks!

@hisaac hisaac force-pushed the feat/ninxsoft/mist-cli branch from 446e35e to 72f8391 Compare March 17, 2025 03:46

This comment was marked as resolved.

@hisaac hisaac force-pushed the feat/ninxsoft/mist-cli branch from 72f8391 to 9706f2e Compare March 17, 2025 03:48

This comment was marked as resolved.

@hisaac
Copy link
Contributor Author

hisaac commented Mar 17, 2025

Apparently allowing GitHub to auto-update a branch messes up the commit signing 🤦 sorting that out now.

hisaac added 2 commits March 16, 2025 22:50

Verified

This commit was signed with the committer’s verified signature. The key has expired.
hisaac Isaac Halvorson

Verified

This commit was signed with the committer’s verified signature. The key has expired.
hisaac Isaac Halvorson
@hisaac hisaac force-pushed the feat/ninxsoft/mist-cli branch from 9706f2e to bdc2bad Compare March 17, 2025 03:50
@hisaac
Copy link
Contributor Author

hisaac commented Mar 17, 2025

There we go

@suzuki-shunsuke
Copy link
Member

Thank you!

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Mar 17, 2025
@suzuki-shunsuke suzuki-shunsuke added this to the v4.328.1 milestone Mar 17, 2025
@suzuki-shunsuke suzuki-shunsuke merged commit e34d96f into aquaproj:main Mar 17, 2025
19 checks passed
@suzuki-shunsuke
Copy link
Member

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Mar 26, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aquaproj/aqua-registry](https://github.com/aquaproj/aqua-registry) | minor | `v4.326.1` -> `v4.332.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>aquaproj/aqua-registry (aquaproj/aqua-registry)</summary>

### [`v4.332.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.332.0)

[Compare Source](aquaproj/aqua-registry@v4.331.1...v4.332.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.332.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.332.0) | aquaproj/aqua-registry@v4.331.1...v4.332.0

#### 🎉 New Packages

[#&#8203;33567](aquaproj/aqua-registry#33567) [lusingander/ddv](https://github.com/lusingander/ddv): Terminal DynamoDB Viewer [@&#8203;tmeijn](https://github.com/tmeijn)
[#&#8203;33568](aquaproj/aqua-registry#33568) [lusingander/stu](https://github.com/lusingander/stu): TUI explorer application for Amazon S3 (AWS S3) [@&#8203;tmeijn](https://github.com/tmeijn)

#### Fixes

[#&#8203;33565](aquaproj/aqua-registry#33565) idursun/jjui: Follow up changes of jjui v0.7.2
[#&#8203;33564](aquaproj/aqua-registry#33564) alexpasmantier/television: Follow up changes of television 0.11.4

Configure Cosign

[#&#8203;33562](aquaproj/aqua-registry#33562) loft-sh/vcluster [@&#8203;scop](https://github.com/scop)
[#&#8203;33539](aquaproj/aqua-registry#33539) smallstep/certificates [@&#8203;scop](https://github.com/scop)

### [`v4.331.1`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.331.1)

[Compare Source](aquaproj/aqua-registry@v4.331.0...v4.331.1)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.331.1) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.331.1) | aquaproj/aqua-registry@v4.331.0...v4.331.1

#### Fixes

[#&#8203;33520](aquaproj/aqua-registry#33520) bufbuild/protoc-gen-validate: Add plugins [@&#8203;akanter](https://github.com/akanter)

Configure Cosign:

[#&#8203;33521](aquaproj/aqua-registry#33521) smallstep/cli [@&#8203;scop](https://github.com/scop)
[#&#8203;33279](aquaproj/aqua-registry#33279) stacklok/frizbee [@&#8203;scop](https://github.com/scop)
[#&#8203;33468](aquaproj/aqua-registry#33468) suzuki-shunsuke/ghalint [@&#8203;scop](https://github.com/scop)
[#&#8203;33462](aquaproj/aqua-registry#33462) suzuki-shunsuke/pinact [@&#8203;scop](https://github.com/scop)
[#&#8203;33461](aquaproj/aqua-registry#33461) suzuki-shunsuke/sort-issue-template [@&#8203;scop](https://github.com/scop)
[#&#8203;33457](aquaproj/aqua-registry#33457) suzuki-shunsuke/tfaction-go [@&#8203;scop](https://github.com/scop)
[#&#8203;33454](aquaproj/aqua-registry#33454) trufflesecurity/trufflehog [@&#8203;scop](https://github.com/scop)

### [`v4.331.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.331.0)

[Compare Source](aquaproj/aqua-registry@v4.330.0...v4.331.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.331.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.331.0) | aquaproj/aqua-registry@v4.330.0...v4.331.0

#### 🎉 New Packages

[#&#8203;33423](aquaproj/aqua-registry#33423) [houseabsolute/ubi](https://github.com/houseabsolute/ubi) : The Universal Binary Installer [@&#8203;scop](https://github.com/scop)
[#&#8203;33428](aquaproj/aqua-registry#33428) [sinclairtarget/git-who](https://github.com/sinclairtarget/git-who): Git blame for file trees
[#&#8203;33390](aquaproj/aqua-registry#33390) [theseus-rs/postgresql-binaries](https://github.com/theseus-rs/postgresql-binaries) - PostgreSQL binaries for Linux, MacOS and Windows [@&#8203;yashikota](https://github.com/yashikota)

#### Fixes

[#&#8203;33426](aquaproj/aqua-registry#33426) tmccombs/hcl2json: Re-scaffold

Configure Cosign

[#&#8203;33394](aquaproj/aqua-registry#33394) FairwindsOps/pluto [@&#8203;scop](https://github.com/scop)
[#&#8203;33396](aquaproj/aqua-registry#33396) FairwindsOps/gonogo [@&#8203;scop](https://github.com/scop)
[#&#8203;33398](aquaproj/aqua-registry#33398) carvel-dev/ytt [@&#8203;scop](https://github.com/scop)
[#&#8203;33399](aquaproj/aqua-registry#33399) bitnami-labs/sealed-secrets [@&#8203;scop](https://github.com/scop)
[#&#8203;33402](aquaproj/aqua-registry#33402) aquasecurity/trivy [@&#8203;scop](https://github.com/scop)
[#&#8203;33406](aquaproj/aqua-registry#33406) carvel-dev/vendir [@&#8203;scop](https://github.com/scop)
[#&#8203;33416](aquaproj/aqua-registry#33416) sigstore/rekor [@&#8203;scop](https://github.com/scop)
[#&#8203;33419](aquaproj/aqua-registry#33419) purpleclay/dns53 [@&#8203;scop](https://github.com/scop)
[#&#8203;33422](aquaproj/aqua-registry#33422) sigstore/gitsign [@&#8203;scop](https://github.com/scop)

### [`v4.330.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.330.0)

[Compare Source](aquaproj/aqua-registry@v4.329.0...v4.330.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.330.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.330.0) | aquaproj/aqua-registry@v4.329.0...v4.330.0

#### 🎉 New Packages

[#&#8203;33349](aquaproj/aqua-registry#33349) [aws/aws-sam-cli](https://github.com/aws/aws-sam-cli) - CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM [@&#8203;yashikota](https://github.com/yashikota)

#### Fixes

[#&#8203;33370](aquaproj/aqua-registry#33370) FairwindsOps/rbac-lookup: Configure Cosign [@&#8203;scop](https://github.com/scop)
[#&#8203;33332](aquaproj/aqua-registry#33332) alexpasmantier/television: Follow up changes of television 0.10.10

### [`v4.329.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.329.0)

[Compare Source](aquaproj/aqua-registry@v4.328.0...v4.329.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.329.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.329.0) | aquaproj/aqua-registry@v4.328.0...v4.329.0

#### 🎉 New Packages

[#&#8203;33302](aquaproj/aqua-registry#33302) [cpisciotta/xcbeautify](https://github.com/cpisciotta/xcbeautify): A little beautifier tool for xcodebuild [@&#8203;hisaac](https://github.com/hisaac)
[#&#8203;33289](aquaproj/aqua-registry#33289) [ninxsoft/mist-cli](https://github.com/ninxsoft/mist-cli): A Mac command-line tool that automatically downloads macOS Firmwares / Installers [@&#8203;hisaac](https://github.com/hisaac)
[#&#8203;33303](aquaproj/aqua-registry#33303) [realm/SwiftLint](https://github.com/realm/SwiftLint): A tool to enforce Swift style and conventions [@&#8203;hisaac](https://github.com/hisaac)

#### Fixes

[#&#8203;33326](aquaproj/aqua-registry#33326) securego/gosec: Configure Cosign [@&#8203;scop](https://github.com/scop)

### [`v4.328.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.328.0)

[Compare Source](aquaproj/aqua-registry@v4.327.0...v4.328.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.328.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.328.0) | aquaproj/aqua-registry@v4.327.0...v4.328.0

#### 🎉 New Packages

[#&#8203;33277](aquaproj/aqua-registry#33277) [cirruslabs/tart](https://github.com/cirruslabs/tart): macOS and Linux VMs on Apple Silicon to use in CI and other automations [@&#8203;hisaac](https://github.com/hisaac)

#### Fixes

[#&#8203;33276](aquaproj/aqua-registry#33276) Trendyol/kink: Configure Cosign [@&#8203;scop](https://github.com/scop)
[#&#8203;33278](aquaproj/aqua-registry#33278) stackrox/kube-linter: Configure Cosign [@&#8203;scop](https://github.com/scop)
[#&#8203;33275](aquaproj/aqua-registry#33275) terramate-io/terramate: Configure Cosign [@&#8203;scop](https://github.com/scop)

### [`v4.327.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.327.0)

[Compare Source](aquaproj/aqua-registry@v4.326.1...v4.327.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.327.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.327.0) | aquaproj/aqua-registry@v4.326.1...v4.327.0

#### 🎉 New Packages

[#&#8203;33263](aquaproj/aqua-registry#33263) [XcodesOrg/xcodes](https://github.com/XcodesOrg/xcodes) - The best command-line tool to install and switch between multiple versions of Xcode [@&#8203;hisaac](https://github.com/hisaac)
[#&#8203;33204](aquaproj/aqua-registry#33204) [subtrace/subtrace](https://github.com/subtrace/subtrace): Wireshark for Docker containers

#### Fixes

[#&#8203;33234](aquaproj/aqua-registry#33234) orlangure/gocovsh: Configure Cosign [@&#8203;scop](https://github.com/scop)
[#&#8203;33235](aquaproj/aqua-registry#33235) twpayne/chezmoi: Configure Cosign [@&#8203;scop](https://github.com/scop)
[#&#8203;33269](aquaproj/aqua-registry#33269) grpc/grpc-go/protoc-gen-go-grpc: Re-scaffold
[#&#8203;33270](aquaproj/aqua-registry#33270) dag-andersen/argocd-diff-preview: Re-scaffold

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTMuNSIsInVwZGF0ZWRJblZlciI6IjM5LjIxMy41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants