Skip to content

0.0.125 breaks container build: builder/runtime-access.sql missing from staged build context #68

Description

@antoinetoussaint-byte

Regression

Postgres service agent 0.0.125 breaks the container build for any service that uses the generated COPY builder/runtime-access.sql step. 0.0.124 builds the same service cleanly.

Symptom

#10 [7/7] COPY builder/runtime-access.sql /app/runtime-access.sql
#10 ERROR: failed to calculate checksum of ref ...: "/builder/runtime-access.sql": not found
ERROR: failed to build: failed to solve: failed to compute cache key: "/builder/runtime-access.sql": not found

Diagnosis

The Dockerfile the agent generates in 0.0.125 still emits COPY builder/runtime-access.sql /app/runtime-access.sql, but the build context the agent stages no longer includes the builder/ directory (the transferred context contains migrations/ but not builder/). So BuildKit fails computing the cache key for that COPY. Under 0.0.124 the same COPY resolves because builder/ is present in the staged context.

Impact

Any postgres service with runtime-access role provisioning (spec.runtime-read-write-roles) fails codefly build service / codefly ci build on 0.0.125.

Repro

  1. Pin a postgres service to 0.0.125.
  2. codefly build service → fails as above.
  3. Repin to 0.0.124 → builds and exports the image.

Workaround

Holding the pin at 0.0.124 in module-saas-starter until this is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions