Skip to content

Docker errors on latest image #2084

@bxavi

Description

@bxavi

Version

1.16.0

What happened?

Latest image produces error below from docker. No error in previous 1.16.0 version.

Status: Downloaded newer image for kjconroy/sqlc:latest
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "generate": executable file not found in $PATH: unknown.
make: *** [Makefile:64: sqlc] Error 127

Relevant log output

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "generate": executable file not found in $PATH: unknown.  
make: *** [Makefile:64: sqlc] Error 127

Database schema

No response

SQL queries

No response

Configuration

version: "2"
sql:
  - engine: "postgresql"
    queries: "sqlc/query.sql"
    schema: "sqlc/schema.sql"

    # https://github.com/gobuffalo/nulls
    
    gen:
      go:
        package: "dao"
        out: "dao"
        emit_json_tags: true
        emit_result_struct_pointers: true
        emit_empty_slices: true
        emit_prepared_queries: false
        emit_interface: true
        json_tags_case_style: "none"
        #emit_exact_table_names: true
        overrides:
          - column: "*.*id"
            go_struct_tag: "json:\"-\""
            nullable: true
          - column: "*.*ID"
            go_struct_tag: "json:\"-\""
            nullable: true
          - column: "player.password"
            go_struct_tag: "json:\"-\""
            nullable: true
          - column: "player.token"
            go_struct_tag: "json:\"-\""
            nullable: true
          - column: "player.token_datetime"
            go_struct_tag: "json:\"-\""
            nullable: true
          - db_type: "pg_catalog.int4"
            go_type: "github.com/gobuffalo/nulls.Int"
            nullable: true
          - db_type: "pg_catalog.int8"
            go_type: "github.com/gobuffalo/nulls.Int"
            nullable: true
          - db_type: "string"
            go_type: "github.com/gobuffalo/nulls.String"
            nullable: true
          - db_type: "pg_catalog.varchar"
            go_type: "github.com/gobuffalo/nulls.String"
            nullable: true
          - db_type: "text"
            go_type: "github.com/gobuffalo/nulls.String"
            nullable: true
          - db_type: "timestamptz"
            go_type: "github.com/gobuffalo/nulls.Time"
            nullable: true
          - db_type: "pg_catalog.timestamp"
            go_type: "github.com/gobuffalo/nulls.Time"
            nullable: true
          - db_type: "pg_catalog.timestamptz"
            go_type: "github.com/gobuffalo/nulls.Time"
            nullable: true
          - db_type: "date"
            go_type: "github.com/gobuffalo/nulls.Time"
            nullable: true
          - db_type: "pg_catalog.bool"
            go_type: "github.com/gobuffalo/nulls.Bool"
            nullable: true
          - db_type: "uuid"
            go_type: "github.com/gobuffalo/nulls.uuid"
            nullable: true
          - db_type: "pgtype.UUID"
            go_type: "github.com/gobuffalo/nulls.uuid"
            nullable: true
        
      python:
        package: "pyDAL"
        out: "pyDAL"
        emit_exact_table_names: true
        emit_sync_querier: true
        emit_async_querier: false

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions