Skip to content

Allow FAKE_API_HOST to point to TCP address #576

@afranklp

Description

@afranklp

In the context that I am attempting to run Dependabot CLI in I have already set export FAKE_API_PORT=2375 and, I am receiving the following logs when running the dependabot update command:

updater | 2026/02/19 19:01:22 INFO Starting update job of type group_update_all_versions
  proxy | 2026/02/19 19:01:22 [001] POST http://host.docker.internal:2375/update_jobs/cli/increment_metric
  proxy | 2026/02/19 19:01:22 [001] 404 http://host.docker.internal:2375/update_jobs/cli/increment_metric

In that same context, I ran this command:

docker context inspect --format '{{ index .Endpoints.docker.Host }}' ${DOCKER_CONTEXT:-default}

I got the following result: tcp://host.docker.internal:2375

Because of this, I tried setting FAKE_API_HOST to tcp://host.docker.internal and FAKE_API_PORT to 2375 and got the following log:

export FAKE_API_HOST=tcp://host.docker.internal
FAKE_API_HOST=tcp://host.docker.internal
export FAKE_API_PORT=2375
FAKE_API_PORT=2375
dependabot update --local . --file dependabot-config.yml
panic: listen tcp: address tcp://host.docker.internal:2375: too many colons in address

Would it be possible to allow FAKE_API_HOST to a TCP address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions