Skip to content

chore: bump go (->v1.21.5) and sqlc (->v1.24.0) to new versions #11170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 13, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Dec 12, 2023

Additional

Bump sqlc to 1.24.0

Adding support for sqlc vet made sqlc gen require a db connection. Disable that to get previous behavior

Adding support for sqlc vet made sqlc gen require a db connection.
Disable that to get previous behavior
@Emyrk Emyrk changed the title chore: do not use database for sqlc gen chore!: do not use database for sqlc gen Dec 12, 2023
@Emyrk Emyrk added the hotfix PRs only. Harmless small change. Only humans may set this. label Dec 12, 2023
cdr-bot[bot]
cdr-bot bot previously approved these changes Dec 12, 2023
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is no longer a hotfix.

  • ✅ Base is main
  • ❌ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@github-actions github-actions bot added the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label Dec 12, 2023
@Emyrk Emyrk changed the title chore!: do not use database for sqlc gen chore: do not use database for sqlc gen Dec 12, 2023
@Emyrk Emyrk removed release/breaking This label is applied to PRs to detect breaking changes as part of the release process hotfix PRs only. Harmless small change. Only humans may set this. labels Dec 12, 2023
@cdr-bot cdr-bot bot dismissed their stale review December 12, 2023 23:50

This PR is no longer a hotfix.

@Emyrk
Copy link
Member Author

Emyrk commented Dec 12, 2023

This is no longer a hotfix.

  1. I needed to turn analyzer: database = false.
  2. That required sqlc version 1.24.0
  3. Which requires go 1.21.1.

@Emyrk Emyrk changed the title chore: do not use database for sqlc gen chore: bump go to 1.21.5 Dec 12, 2023
@@ -53,7 +53,7 @@ RUN mkdir --parents "$GOPATH" && \
# charts and values files
go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.5.0 && \
# sqlc for Go code generation
go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.20.0 && \
(CGO_ENABLED=1 go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.24.0) && \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is annoying, but the postgres engine requires CGO. This is compiling a utility binary, so it doesn't push any CGO into coder.

@Emyrk Emyrk changed the title chore: bump go to 1.21.5 chore: bump go (->v1.21.5) and sqlc (->v1.24.0) to new versions Dec 12, 2023
@Emyrk Emyrk merged commit 6800fc8 into main Dec 13, 2023
@Emyrk Emyrk deleted the stevenmasley/local-make-gen branch December 13, 2023 00:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matifali approved this PR from Slack with Graphite

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants