From 6808bb6adda1466481ba35c30af29189ce193217 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 24 Dec 2024 10:12:38 +0900 Subject: [PATCH] fix(smallstep/certificates): resolve the key duplication error ``` --- FAIL: BenchmarkUnmarshalYAML/goccy/go-yaml foo_test.go:47: [45875:9] duplicate key "version_constraint" 45872 | enabled: false 45873 | format: tar.gz 45874 | - <<: *smallstep_certificates_default > 45875 | version_constraint: "true" ^ 45876 | - type: github_release 45877 | repo_owner: smallstep 45878 | repo_name: cli 45879 | ``` --- pkgs/smallstep/certificates/registry.yaml | 18 ++++++++++++++++-- registry.yaml | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/pkgs/smallstep/certificates/registry.yaml b/pkgs/smallstep/certificates/registry.yaml index a67699b31f6..ef987ebd09c 100644 --- a/pkgs/smallstep/certificates/registry.yaml +++ b/pkgs/smallstep/certificates/registry.yaml @@ -293,5 +293,19 @@ packages: checksum: enabled: false format: tar.gz - - <<: *smallstep_certificates_default - version_constraint: "true" + - version_constraint: "true" + asset: step-ca_{{.OS}}_{{trimV .Version}}_{{.Arch}}.{{.Format}} + format: tar.gz + files: + - name: step-ca + overrides: + - goos: windows + format: zip + supported_envs: + - darwin + - linux + - amd64 + checksum: + type: github_release + asset: checksums.txt + algorithm: sha256 diff --git a/registry.yaml b/registry.yaml index b9b86379d3e..2bc5a22c4a2 100644 --- a/registry.yaml +++ b/registry.yaml @@ -45901,8 +45901,22 @@ packages: checksum: enabled: false format: tar.gz - - <<: *smallstep_certificates_default - version_constraint: "true" + - version_constraint: "true" + asset: step-ca_{{.OS}}_{{trimV .Version}}_{{.Arch}}.{{.Format}} + format: tar.gz + files: + - name: step-ca + overrides: + - goos: windows + format: zip + supported_envs: + - darwin + - linux + - amd64 + checksum: + type: github_release + asset: checksums.txt + algorithm: sha256 - type: github_release repo_owner: smallstep repo_name: cli