Skip to content

internal/forks/godotenv is not copied to container in Dockerfile.dev #2606

Description

@vishu160196

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

During make dev step of Quickstart, the RUN make deps step in Dockerfile.dev fails with the following error

2.763 go: github.com/joho/godotenv@v1.5.1 (replaced by ./internal/forks/godotenv): reading internal/forks/godotenv/go.mod: open /go/src/github.com/supabase/auth/internal/forks/godotenv/go.mod: no such file or directory

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone the repo
  2. Follow the steps in https://github.com/supabase/auth#if-you-have-docker-installed
  3. During make dev step error can be seen

Expected behavior

postgres-1 and auth-1 containers should be up and running after make dev

Screenshots

Image

System information

  • OS: [macOS 15.7.7 (24G720)]

Additional context

Adding a COPY internal/forks/godotenv ./internal/forks/godotenv before RUN make deps fixes the issue

Image

The volume mount in docker-compose-dev.yml ./:/go/src/github.com/supabase/auth happens after image is built. During image building this volume is not available and hence must be copied explicitly in Dockerfile.dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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