Skip to content

Docker errors on latest image #2084

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

Closed
bxavi opened this issue Feb 15, 2023 · 1 comment
Closed

Docker errors on latest image #2084

bxavi opened this issue Feb 15, 2023 · 1 comment
Labels
bug Something isn't working regression
Milestone

Comments

@bxavi
Copy link

bxavi commented Feb 15, 2023

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

@bxavi bxavi added bug Something isn't working triage New issues that hasn't been reviewed labels Feb 15, 2023
@kyleconroy kyleconroy added regression and removed triage New issues that hasn't been reviewed labels Feb 16, 2023
@kyleconroy kyleconroy modified the milestones: v1.17.0, 1.17.1 Feb 16, 2023
@kyleconroy
Copy link
Collaborator

Turns out that #1943 is causing more issues than it fixes, so I'm going to revert it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

No branches or pull requests

2 participants