Skip to content

[go-migration] postgresql_jdbc framework seems not detected when having a PostgreSQL service binding at place #1152

Closed

Description

@kiril-keranov

When staging an application having a PostgreSQL service binding like:

buildpack: "https://github.com/cloudfoundry/java-buildpack.git#feature/go-migration"
  services:
  - test_postgresql

or another example:

buildpack: "https://github.com/cloudfoundry/java-buildpack.git#feature/go-migration"
  services:
  - INTEGRATION_TESTS_POSTGRESQL

the postgresql_jdbc is not detected and postgresql driver is not downloaded.
The same examples above work properly when staging with the current ruby buildpack:

Staging app and tracing logs...
   Cell 8ae72bad-b37d-47bf-8a20-ecf3d268a055 creating container for instance 531618aa-0c12-4808-bd09-0ed7ee7f202b
   Security group rules were updated
   Cell 8ae72bad-b37d-47bf-8a20-ecf3d268a055 successfully created container for instance 531618aa-0c12-4808-bd09-0ed7ee7f202b
   Downloading app package...
   Downloaded app package (6.3K)
   -----> Java Buildpack cb524cc | https://github.com/cloudfoundry/java-buildpack.git#cb524cc
   -----> Downloading Jvmkill Agent 1.17.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/jammy/x86_64/jvmkill-1.17.0-RELEASE.so (0.1s)
   -----> Downloading Open Jdk JRE 1.8.0_452 from https://java-buildpack.cloudfoundry.org/openjdk/jammy/x86_64/bellsoft-jre8u452%2B11-linux-amd64.tar.gz (0.7s)
   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (0.6s)
   JVM DNS caching disabled in lieu of BOSH DNS caching
   -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/jammy/x86_64/memory-calculator-3.13.0-RELEASE.tar.gz (0.0s)
   Loaded Classes: 8433, Threads: 250
   -----> Downloading Client Certificate Mapper 2.0.1 from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-2.0.1.jar (0.0s)
   -----> Downloading Container Security Provider 1.20.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.20.0-RELEASE.jar (0.0s)
   -----> Downloading Postgresql JDBC 42.7.9 from https://java-buildpack.cloudfoundry.org/postgresql-jdbc/postgresql-jdbc-42.7.9.jar (0.0s)

Activity

  1. kiril-keranov commented on Jan 22, 2026

    @kiril-keranov
    ContributorAuthor

    There might be issues with the other frameworks also not only with postgresql as the issue comes from a more general code

  2. kiril-keranov commented on Feb 3, 2026

    @kiril-keranov
    ContributorAuthor

    Fixed with PR1 and PR2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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