/rel not found

hey

i’ve launched and deployed many times, but this time i’m getting an error.

 => CACHED [builder 14/17] RUN mix compile                                                                                                                                                                                                0.0s
 => CACHED [builder 15/17] COPY config/runtime.exs config/                                                                                                                                                                                0.0s
 => ERROR [builder 16/17] COPY rel rel                                                                                                                                                                                                    0.0s
 => [stage-1 1/6] FROM docker.io/library/debian:bullseye-20221004-slim@sha256:b46fc4e6813f6cbd9f3f6322c72ab974cc0e75a72ca02730a8861e98999875c7                                                                                            0.0s
------
 > [builder 16/17] COPY rel rel:
------
Error failed to fetch an image or build from source: error building: failed to compute cache key: "/rel" not found: not found

i’m pretty sure it’s because i’ve since deleted the /rel directory, because it’s in .gitignore and i used git clean -df at one point.

my real question is

  1. do i have to commit /rel? i don’t really want compiled binaries in my codebase.
  2. why doesn’t fly just create a new release from scratch?
  3. what are my options now, launch from scratch?

/rel is generated by mix phx.gen.release --docker you can try to restore it by running the command. This folder should be in a repository, not in .gitignore by design, and does not contain binaries but a few small files with shell scripts.

1 Like

oh, okay. i never checked, just assumed.

thanks for the clear and consice answer!