From 5119c86b006a9c268133f9b5e666e50baea926f8 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 10 Dec 2024 07:40:24 +0900 Subject: [PATCH 1/4] feat(pimalaya/himalaya): scaffold pimalaya/himalaya --- pkgs/pimalaya/himalaya/pkg.yaml | 22 +++-- pkgs/pimalaya/himalaya/registry.yaml | 124 +++++++++++++++++++++------ registry.yaml | 124 +++++++++++++++++++++------ 3 files changed, 214 insertions(+), 56 deletions(-) diff --git a/pkgs/pimalaya/himalaya/pkg.yaml b/pkgs/pimalaya/himalaya/pkg.yaml index f6eaa12c84e..977df0971f5 100644 --- a/pkgs/pimalaya/himalaya/pkg.yaml +++ b/pkgs/pimalaya/himalaya/pkg.yaml @@ -1,14 +1,24 @@ packages: - - name: pimalaya/himalaya@v1.0.0-beta.3 + - name: pimalaya/himalaya@v1.0.0 + - name: pimalaya/himalaya + version: v1.0.0-beta.4 + - name: pimalaya/himalaya + version: v1.0.0-beta.3 + - name: pimalaya/himalaya + version: v0.9.0 + - name: pimalaya/himalaya + version: v0.8.3 + - name: pimalaya/himalaya + version: v0.8.2 + - name: pimalaya/himalaya + version: v0.8.1 - name: pimalaya/himalaya version: v0.7.3 - name: pimalaya/himalaya version: v0.7.2 - name: pimalaya/himalaya - version: v0.5.10 - - name: pimalaya/himalaya - version: v0.5.6 + version: v0.7.1 - name: pimalaya/himalaya - version: v0.3.2 + version: v0.5.9 - name: pimalaya/himalaya - version: v0.1.0 + version: v0.5.5 diff --git a/pkgs/pimalaya/himalaya/registry.yaml b/pkgs/pimalaya/himalaya/registry.yaml index e272629e031..5c55303457a 100644 --- a/pkgs/pimalaya/himalaya/registry.yaml +++ b/pkgs/pimalaya/himalaya/registry.yaml @@ -2,40 +2,114 @@ packages: - type: github_release repo_owner: pimalaya repo_name: himalaya - aliases: - - name: soywod/himalaya - description: CLI to manage your emails - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - darwin - - amd64 - rosetta2: true - version_constraint: semver(">= 0.8.0") - # https://github.com/soywod/himalaya/releases/tag/v0.8.0 - # Changed release archive extensions from .tar.gz to .tgz. + description: CLI to manage emails + version_constraint: "false" version_overrides: - - version_constraint: semver(">= 0.7.3") + - version_constraint: semver("<= 0.5.5") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - - version_constraint: semver(">= 0.7.2") + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 0.5.9") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz + replacements: + darwin: macos supported_envs: - linux/amd64 - darwin - - version_constraint: semver(">= 0.5.10") + - version_constraint: semver("<= 0.7.1") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - - version_constraint: semver(">= 0.5.6") + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v0.7.2" + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz + replacements: + darwin: macos supported_envs: - linux/amd64 - darwin - - version_constraint: semver(">= 0.3.2") - format: tar.gz - - version_constraint: semver("< 0.3.2") + - version_constraint: Version == "v0.7.3" + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - files: - # https://github.com/soywod/himalaya/issues/144 - - name: himalaya - src: himalaya.exe + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 0.8.1") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v0.8.2" + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + supported_envs: + - linux/amd64 + - version_constraint: Version == "v0.8.3" + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - linux/amd64 + - darwin + - version_constraint: semver("<= 0.9.0") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 1.0.0-beta.3") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + overrides: + - goos: linux + asset: himalaya-{{.OS}}-musl.{{.Format}} + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v1.0.0-beta.4" + asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} + format: tgz + rosetta2: true + windows_arm_emulation: true + replacements: + amd64: x86_64 + darwin: macos + overrides: + - goos: linux + replacements: + arm64: aarch64 + - version_constraint: "true" + asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} + format: tgz + windows_arm_emulation: true + replacements: + amd64: x86_64 + arm64: aarch64 + overrides: + - goos: windows + replacements: {} diff --git a/registry.yaml b/registry.yaml index 864471c3c30..05a4f2164fe 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39811,43 +39811,117 @@ packages: - type: github_release repo_owner: pimalaya repo_name: himalaya - aliases: - - name: soywod/himalaya - description: CLI to manage your emails - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - darwin - - amd64 - rosetta2: true - version_constraint: semver(">= 0.8.0") - # https://github.com/soywod/himalaya/releases/tag/v0.8.0 - # Changed release archive extensions from .tar.gz to .tgz. + description: CLI to manage emails + version_constraint: "false" version_overrides: - - version_constraint: semver(">= 0.7.3") + - version_constraint: semver("<= 0.5.5") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - - version_constraint: semver(">= 0.7.2") + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 0.5.9") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz + replacements: + darwin: macos supported_envs: - linux/amd64 - darwin - - version_constraint: semver(">= 0.5.10") + - version_constraint: semver("<= 0.7.1") + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - - version_constraint: semver(">= 0.5.6") + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v0.7.2" + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz + replacements: + darwin: macos supported_envs: - linux/amd64 - darwin - - version_constraint: semver(">= 0.3.2") - format: tar.gz - - version_constraint: semver("< 0.3.2") + - version_constraint: Version == "v0.7.3" + asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz - files: - # https://github.com/soywod/himalaya/issues/144 - - name: himalaya - src: himalaya.exe + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 0.8.1") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v0.8.2" + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + supported_envs: + - linux/amd64 + - version_constraint: Version == "v0.8.3" + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - linux/amd64 + - darwin + - version_constraint: semver("<= 0.9.0") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 1.0.0-beta.3") + asset: himalaya-{{.OS}}.{{.Format}} + format: tgz + replacements: + darwin: macos + overrides: + - goos: linux + asset: himalaya-{{.OS}}-musl.{{.Format}} + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: Version == "v1.0.0-beta.4" + asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} + format: tgz + rosetta2: true + windows_arm_emulation: true + replacements: + amd64: x86_64 + darwin: macos + overrides: + - goos: linux + replacements: + arm64: aarch64 + - version_constraint: "true" + asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} + format: tgz + windows_arm_emulation: true + replacements: + amd64: x86_64 + arm64: aarch64 + overrides: + - goos: windows + replacements: {} - name: pipe-cd/pipecd/pipectl type: github_release repo_owner: pipe-cd From 98aabcd3ae14dfc988c4147a6cbe16ac12b21332 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 10 Dec 2024 08:11:41 +0900 Subject: [PATCH 2/4] refactor(pimalaya/himalaya): simplify version_overrides --- pkgs/pimalaya/himalaya/registry.yaml | 61 ++++------------------------ registry.yaml | 61 ++++------------------------ 2 files changed, 18 insertions(+), 104 deletions(-) diff --git a/pkgs/pimalaya/himalaya/registry.yaml b/pkgs/pimalaya/himalaya/registry.yaml index 5c55303457a..c3cb03f123a 100644 --- a/pkgs/pimalaya/himalaya/registry.yaml +++ b/pkgs/pimalaya/himalaya/registry.yaml @@ -5,33 +5,20 @@ packages: description: CLI to manage emails version_constraint: "false" version_overrides: - - version_constraint: semver("<= 0.5.5") - asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz - replacements: - darwin: macos - supported_envs: - - darwin - - windows - - amd64 - - version_constraint: semver("<= 0.5.9") + - version_constraint: Version == "v0.8.2" asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz - replacements: - darwin: macos + format: tgz supported_envs: - linux/amd64 - - darwin - - version_constraint: semver("<= 0.7.1") + - version_constraint: Version == "v0.8.3" asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz + format: tgz replacements: darwin: macos supported_envs: + - linux/amd64 - darwin - - windows - - amd64 - - version_constraint: Version == "v0.7.2" + - version_constraint: semver("> 0.5.5, <= 0.5.9") or Version == "v0.7.2" asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz replacements: @@ -39,7 +26,7 @@ packages: supported_envs: - linux/amd64 - darwin - - version_constraint: Version == "v0.7.3" + - version_constraint: semver("<= 0.7.3") asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz replacements: @@ -48,28 +35,6 @@ packages: - darwin - windows - amd64 - - version_constraint: semver("<= 0.8.1") - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - darwin - - windows - - amd64 - - version_constraint: Version == "v0.8.2" - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - supported_envs: - - linux/amd64 - - version_constraint: Version == "v0.8.3" - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - linux/amd64 - - darwin - version_constraint: semver("<= 0.9.0") asset: himalaya-{{.OS}}.{{.Format}} format: tgz @@ -84,9 +49,7 @@ packages: format: tgz replacements: darwin: macos - overrides: - - goos: linux - asset: himalaya-{{.OS}}-musl.{{.Format}} + linux: linux-musl supported_envs: - darwin - windows @@ -99,10 +62,7 @@ packages: replacements: amd64: x86_64 darwin: macos - overrides: - - goos: linux - replacements: - arm64: aarch64 + arm64: aarch64 - version_constraint: "true" asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} format: tgz @@ -110,6 +70,3 @@ packages: replacements: amd64: x86_64 arm64: aarch64 - overrides: - - goos: windows - replacements: {} diff --git a/registry.yaml b/registry.yaml index 05a4f2164fe..f0df9e52e67 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39814,33 +39814,20 @@ packages: description: CLI to manage emails version_constraint: "false" version_overrides: - - version_constraint: semver("<= 0.5.5") - asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz - replacements: - darwin: macos - supported_envs: - - darwin - - windows - - amd64 - - version_constraint: semver("<= 0.5.9") + - version_constraint: Version == "v0.8.2" asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz - replacements: - darwin: macos + format: tgz supported_envs: - linux/amd64 - - darwin - - version_constraint: semver("<= 0.7.1") + - version_constraint: Version == "v0.8.3" asset: himalaya-{{.OS}}.{{.Format}} - format: tar.gz + format: tgz replacements: darwin: macos supported_envs: + - linux/amd64 - darwin - - windows - - amd64 - - version_constraint: Version == "v0.7.2" + - version_constraint: semver("> 0.5.5, <= 0.5.9") or Version == "v0.7.2" asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz replacements: @@ -39848,7 +39835,7 @@ packages: supported_envs: - linux/amd64 - darwin - - version_constraint: Version == "v0.7.3" + - version_constraint: semver("<= 0.7.3") asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz replacements: @@ -39857,28 +39844,6 @@ packages: - darwin - windows - amd64 - - version_constraint: semver("<= 0.8.1") - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - darwin - - windows - - amd64 - - version_constraint: Version == "v0.8.2" - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - supported_envs: - - linux/amd64 - - version_constraint: Version == "v0.8.3" - asset: himalaya-{{.OS}}.{{.Format}} - format: tgz - replacements: - darwin: macos - supported_envs: - - linux/amd64 - - darwin - version_constraint: semver("<= 0.9.0") asset: himalaya-{{.OS}}.{{.Format}} format: tgz @@ -39893,9 +39858,7 @@ packages: format: tgz replacements: darwin: macos - overrides: - - goos: linux - asset: himalaya-{{.OS}}-musl.{{.Format}} + linux: linux-musl supported_envs: - darwin - windows @@ -39908,10 +39871,7 @@ packages: replacements: amd64: x86_64 darwin: macos - overrides: - - goos: linux - replacements: - arm64: aarch64 + arm64: aarch64 - version_constraint: "true" asset: himalaya.{{.Arch}}-{{.OS}}.{{.Format}} format: tgz @@ -39919,9 +39879,6 @@ packages: replacements: amd64: x86_64 arm64: aarch64 - overrides: - - goos: windows - replacements: {} - name: pipe-cd/pipecd/pipectl type: github_release repo_owner: pipe-cd From 522d8b82ca6c97aaf404c82592da17b813511e19 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 10 Dec 2024 08:16:41 +0900 Subject: [PATCH 3/4] test(pimalaya/himalaya): add test data --- pkgs/pimalaya/himalaya/pkg.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/pimalaya/himalaya/pkg.yaml b/pkgs/pimalaya/himalaya/pkg.yaml index 977df0971f5..08b9043fce0 100644 --- a/pkgs/pimalaya/himalaya/pkg.yaml +++ b/pkgs/pimalaya/himalaya/pkg.yaml @@ -22,3 +22,7 @@ packages: version: v0.5.9 - name: pimalaya/himalaya version: v0.5.5 + - name: pimalaya/himalaya + version: v0.3.2 + - name: pimalaya/himalaya + version: v0.1.0 From 516c92a07dde706224106e5d20a484b7210ff92f Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 10 Dec 2024 08:18:38 +0900 Subject: [PATCH 4/4] fix(pimalaya/himalaya): support old versions --- pkgs/pimalaya/himalaya/registry.yaml | 15 +++++++++++++++ registry.yaml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/pkgs/pimalaya/himalaya/registry.yaml b/pkgs/pimalaya/himalaya/registry.yaml index c3cb03f123a..6623aa593e7 100644 --- a/pkgs/pimalaya/himalaya/registry.yaml +++ b/pkgs/pimalaya/himalaya/registry.yaml @@ -2,6 +2,8 @@ packages: - type: github_release repo_owner: pimalaya repo_name: himalaya + aliases: + - name: soywod/himalaya description: CLI to manage emails version_constraint: "false" version_overrides: @@ -26,6 +28,19 @@ packages: supported_envs: - linux/amd64 - darwin + - version_constraint: semver("< 0.3.2") + asset: himalaya-{{.OS}}.{{.Format}} + format: tar.gz + files: + # https://github.com/soywod/himalaya/issues/144 + - name: himalaya + src: himalaya.exe + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 - version_constraint: semver("<= 0.7.3") asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz diff --git a/registry.yaml b/registry.yaml index f0df9e52e67..f654fbe8841 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39811,6 +39811,8 @@ packages: - type: github_release repo_owner: pimalaya repo_name: himalaya + aliases: + - name: soywod/himalaya description: CLI to manage emails version_constraint: "false" version_overrides: @@ -39835,6 +39837,19 @@ packages: supported_envs: - linux/amd64 - darwin + - version_constraint: semver("< 0.3.2") + asset: himalaya-{{.OS}}.{{.Format}} + format: tar.gz + files: + # https://github.com/soywod/himalaya/issues/144 + - name: himalaya + src: himalaya.exe + replacements: + darwin: macos + supported_envs: + - darwin + - windows + - amd64 - version_constraint: semver("<= 0.7.3") asset: himalaya-{{.OS}}.{{.Format}} format: tar.gz