Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

docker build err: Failed to fetch and copy dep: {git,"https://github.com/nuex/envloader.git", #387

Open
MichaelBrenden opened this issue Dec 27, 2021 · 1 comment

Comments

@MichaelBrenden
Copy link

The command

docker build -t helium/api .

fails at Dockerfile step 7/18 with this error:

===> Fetching envloader (from {git,"https://github.com/nuex/envloader.git",
{ref,"27a97e04f35c554995467b9236d8ae0188d468c7"}})
===> Failed to fetch and copy dep: {git,"https://github.com/nuex/envloader.git",
{ref,
"27a97e04f35c554995467b9236d8ae0188d468c7"}}
The command '/bin/sh -c ./rebar3 compile' returned a non-zero code: 1

Changing the first line of Dockerfile from
FROM erlang:24-alpine as builder
to
FROM erlang:23-alpine as builder
allows docker to build everything OK.

I chased the cause a little; cause may involve rebar3 and be due to the 7-year old envloder git repo stored on github is missing a refs dir (that was not copied in clone operation because it was empty in source tree) -- see erlang/rebar3#1251 -- see also erlang/rebar3#1259

@madninja
Copy link
Member

Is this still happening for you? We build and deploy docker images for this repo as part of CI and do not get these errors at all. I don't know what would be causing your builds to fail that specifically

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants