From 25182b3cea4767bd2d1e9b849ca8f15ae685fd28 Mon Sep 17 00:00:00 2001 From: Andrew LeFevre Date: Wed, 9 Nov 2022 09:33:16 -0500 Subject: [PATCH] fix check-go-generate job and update sqlc to 1.16 (#22) * start debugging go generate job * print go list * attempt to fix go generate action * update to sqlc 1.16 --- .github/workflows/lint-actions.yml | 2 +- .github/workflows/lint-go.yml | 4 ++-- database/db.go | 2 +- database/models.go | 2 +- database/query.sql.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint-actions.yml b/.github/workflows/lint-actions.yml index c5fcc5a..a57d7a4 100644 --- a/.github/workflows/lint-actions.yml +++ b/.github/workflows/lint-actions.yml @@ -28,4 +28,4 @@ jobs: run: | echo "::add-matcher::.github/actionlint-matcher.json" go install github.com/rhysd/actionlint/cmd/actionlint@latest - actionlint + actionlint -ignore SC2046 diff --git a/.github/workflows/lint-go.yml b/.github/workflows/lint-go.yml index 0bd274b..0554495 100644 --- a/.github/workflows/lint-go.yml +++ b/.github/workflows/lint-go.yml @@ -55,10 +55,10 @@ jobs: - name: Ensure 'go generate' is clean run: | - go generate "$(go list ./...)" + go generate $(go list ./...) echo echo - + if ! git diff --name-only --exit-code; then echo "The files above need updating. Please run 'go generate'." exit 1 diff --git a/database/db.go b/database/db.go index a3de354..ee79cea 100644 --- a/database/db.go +++ b/database/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.15.0 +// sqlc v1.16.0 package database diff --git a/database/models.go b/database/models.go index 3975a5b..637b93a 100644 --- a/database/models.go +++ b/database/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.15.0 +// sqlc v1.16.0 package database diff --git a/database/query.sql.go b/database/query.sql.go index 552eb92..7f5b9cb 100644 --- a/database/query.sql.go +++ b/database/query.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.15.0 +// sqlc v1.16.0 // source: query.sql package database