diff --git a/pkgs/swaggo/swag/pkg.yaml b/pkgs/swaggo/swag/pkg.yaml index e182f06d362..2a1615a5552 100644 --- a/pkgs/swaggo/swag/pkg.yaml +++ b/pkgs/swaggo/swag/pkg.yaml @@ -1,3 +1,3 @@ packages: - - name: swaggo/swag@v1.8.2 - - name: swaggo/swag@v1.8.1 + - name: swaggo/swag@v1.8.3 + - name: swaggo/swag@v1.8.3 diff --git a/pkgs/swaggo/swag/registry.yaml b/pkgs/swaggo/swag/registry.yaml index 65452ad01db..d0445ce3c80 100644 --- a/pkgs/swaggo/swag/registry.yaml +++ b/pkgs/swaggo/swag/registry.yaml @@ -3,16 +3,18 @@ packages: repo_owner: swaggo repo_name: swag description: Automatically generate RESTful API documentation with Swagger 2.0 for Go - version_constraint: 'semver(">= 1.8.2")' + supported_if: GOOS != "windows" asset: "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz" + version_constraint: 'semver("!= 1.8.2")' + rosetta2: true + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + arm64: aarch64 version_overrides: - - version_constraint: 'semver("< 1.8.2")' - rosetta2: true - asset: "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz" - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - arm64: aarch64 + - version_constraint: 'semver("= 1.8.2")' + rosetta2: false + replacements: {} diff --git a/registry.json b/registry.json index 7473f30f152..d2ab0d3f717 100644 --- a/registry.json +++ b/registry.json @@ -7874,23 +7874,25 @@ { "asset": "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz", "description": "Automatically generate RESTful API documentation with Swagger 2.0 for Go", + "replacements": { + "386": "i386", + "amd64": "x86_64", + "arm64": "aarch64", + "darwin": "Darwin", + "linux": "Linux", + "windows": "Windows" + }, "repo_name": "swag", "repo_owner": "swaggo", + "rosetta2": true, + "supported_if": "GOOS != \"windows\"", "type": "github_release", - "version_constraint": "semver(\"\u003e= 1.8.2\")", + "version_constraint": "semver(\"!= 1.8.2\")", "version_overrides": [ { - "asset": "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz", - "replacements": { - "386": "i386", - "amd64": "x86_64", - "arm64": "aarch64", - "darwin": "Darwin", - "linux": "Linux", - "windows": "Windows" - }, - "rosetta2": true, - "version_constraint": "semver(\"\u003c 1.8.2\")" + "replacements": {}, + "rosetta2": false, + "version_constraint": "semver(\"= 1.8.2\")" } ] }, diff --git a/registry.yaml b/registry.yaml index cfff1d33cc9..7408009ee13 100644 --- a/registry.yaml +++ b/registry.yaml @@ -5279,19 +5279,21 @@ packages: repo_owner: swaggo repo_name: swag description: Automatically generate RESTful API documentation with Swagger 2.0 for Go - version_constraint: 'semver(">= 1.8.2")' + supported_if: GOOS != "windows" asset: "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz" + version_constraint: 'semver("!= 1.8.2")' + rosetta2: true + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + arm64: aarch64 version_overrides: - - version_constraint: 'semver("< 1.8.2")' - rosetta2: true - asset: "swag_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz" - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - arm64: aarch64 + - version_constraint: 'semver("= 1.8.2")' + rosetta2: false + replacements: {} - type: github_release repo_owner: sysdiglabs repo_name: kube-psp-advisor