Skip to content

Commit

Permalink
fix(sqlc-dev/sqlc): download assets from downloads.sqlc.dev (#19170)
Browse files Browse the repository at this point in the history
* fix(sqlc-dev/sqlc): download assets from downloads.sqlc.dev

- https://docs.sqlc.dev/en/latest/overview/install.html#downloads
- sqlc-dev/sqlc#2456

* fix(sqlc-dev/sqlc): fix aliases
  • Loading branch information
suzuki-shunsuke authored Jan 20, 2024
1 parent a431735 commit 645ff23
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 54 deletions.
14 changes: 8 additions & 6 deletions pkgs/sqlc-dev/sqlc/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
packages:
- name: sqlc-dev/sqlc@v1.24.0
- name: sqlc-dev/sqlc@v1.25.0
- name: sqlc-dev/sqlc
version: v1.17.2
version: v1.24.0
- name: sqlc-dev/sqlc
version: v1.16.0
version: v1.17.0
- name: sqlc-dev/sqlc
version: v1.9.0-beta1
version: v1.15.0
- name: sqlc-dev/sqlc
version: v1.7.0
version: v1.8.0
- name: sqlc-dev/sqlc
version: v1.0.0
version: v1.6.0
- name: sqlc-dev/sqlc
version: v1.4.0
- name: sqlc-dev/sqlc
version: v0.1.0
72 changes: 48 additions & 24 deletions pkgs/sqlc-dev/sqlc/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,66 @@ packages:
aliases:
- name: kyleconroy/sqlc
description: Generate type-safe code from SQL
asset: sqlc_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
supported_envs:
- darwin
- linux
- amd64
version_constraint: semver(">= 1.17.2")
version_constraint: "false"
version_overrides:
- version_constraint: semver(">= 1.16.0")
- version_constraint: semver("<= 0.1.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
format: zip
rosetta2: true
overrides:
- goos: linux
format: tar.gz
supported_envs:
- linux/amd64
- darwin
- amd64
- version_constraint: semver(">= 1.9.0-beta1")
- version_constraint: semver("<= 1.4.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
supported_envs:
- linux/amd64
- darwin
- amd64
- version_constraint: semver("<= 1.6.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
- version_constraint: semver(">= 1.7.0")
supported_envs:
- linux/amd64
- darwin
- version_constraint: semver("<= 1.8.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
supported_envs:
- darwin
- windows
- amd64
- version_constraint: semver("<= 1.15.0")
asset: sqlc_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
rosetta2: true
- version_constraint: semver(">= 1.0.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
windows_arm_emulation: true
supported_envs:
- linux/amd64
- darwin
rosetta2: true
- version_constraint: semver("< 1.0.0")
asset: sqlc-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
format: zip
overrides:
- goos: linux
format: tar.gz
- windows
- amd64
- version_constraint: semver("<= 1.17.0")
asset: sqlc_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
supported_envs:
- linux/amd64
- darwin
rosetta2: true
- windows
- amd64
- version_constraint: Version == "v1.17.1"
no_asset: true
- version_constraint: semver("<= 1.24.0")
asset: sqlc_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
- version_constraint: "true"
type: http
url: https://downloads.sqlc.dev/sqlc_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
format: tar.gz
windows_arm_emulation: true
72 changes: 48 additions & 24 deletions registry.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 645ff23

Please sign in to comment.