chore(contributing): adapt deps, hardcode generator versions (#6)

This commit is contained in:
Luca Steeb
2023-12-19 22:04:13 +07:00
committed by GitHub
parent cb07d1211a
commit addf42988a
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -9,7 +9,6 @@
- [`Taskfile`](https://taskfile.dev/installation/)
- The following additional devtools:
- `protoc`: `brew install protobuf`
- `sqlc`: `brew install sqlc`
- `caddy` and `nss`: `brew install caddy nss`
### Setup
+1 -1
View File
@@ -59,7 +59,7 @@ tasks:
generate-sqlc:
cmds:
- npx --yes prisma migrate diff --from-empty --to-schema-datasource prisma/schema.prisma --script > internal/repository/prisma/dbsqlc/schema.sql
- sqlc generate --file internal/repository/prisma/dbsqlc/sqlc.yaml
- go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.24.0 generate --file internal/repository/prisma/dbsqlc/sqlc.yaml
kill-query-engines:
cmds:
- ps -A | grep 'prisma-query-engine-darwin-arm64' | grep -v grep | awk '{print $1}' | xargs kill -9 $1
+1 -1
View File
@@ -3,4 +3,4 @@
set -eux
npx --yes swagger-cli bundle ./api-contracts/openapi/openapi.yaml --outfile bin/oas/openapi.yaml --type yaml
go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest -config ./api/v1/server/oas/gen/codegen.yaml ./bin/oas/openapi.yaml
go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 -config ./api/v1/server/oas/gen/codegen.yaml ./bin/oas/openapi.yaml