Skip to content

Incorrect sqlc header version generation using docker.io/sqlc/sqlc:1.26.0 image #3523

@kyleconroy

Description

@kyleconroy

Discussed in #3389

Originally posted by phil535 May 17, 2024
Running sqlc version 1.26.0 using docker image generates wrong sqlc version header.

sqlc1 26

Command:
docker run --rm --user $UID:$GID --volume ./:/src --workdir /src sqlc/sqlc:1.26.0 generate

I used the postgres tutorial example for input but the input should not matter.

This is my sqlc config:

version: "2"
sql:
  - engine: "postgresql"
    queries: "*.sql"
    schema: "*.sql"
    gen:
      go:
        package: "tutorial"
        out: "tutorial"
        sql_package: "pgx/v5"

The sqlc 1.26.0 release with the same config and input works as expected.

Is there anything i missed? Do you have the same behavious with that image from docker.io?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions