You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the INCLUDE+ instruction, since it allows to avoid code duplication.
The only problem I encountered was using multiple levels of INCLUDE+ (i.e. including a file using INCLUDE+ as well).
Not sure if i am doing something wrong, there is a limitation or it just is not implemented.
I think it is just not considered in the implementation (i.e. missing recursive call on the included file) but i could be wrong, since i do not know rust.
My files look like this:
Dockerfile.A:
# syntax = edrevo/dockerfile-plus
FROM alpine
RUN echo ">A"
INCLUDE+ Dockerfile.A2
RUN echo "<A"
Dockerfile.A2:
# syntax = edrevo/dockerfile-plus
RUN echo ">A2"
INCLUDE+ Dockerfile.A3
RUN echo "<A2"
Dockerfile.A3:
# syntax = edrevo/dockerfile-plus
RUN echo ">A3"
RUN echo "<A3"
I really like the
INCLUDE+
instruction, since it allows to avoid code duplication.The only problem I encountered was using multiple levels of
INCLUDE+
(i.e. including a file usingINCLUDE+
as well).Not sure if i am doing something wrong, there is a limitation or it just is not implemented.
I think it is just not considered in the implementation (i.e. missing recursive call on the included file) but i could be wrong, since i do not know rust.
My files look like this:
Dockerfile.A:
Dockerfile.A2:
Dockerfile.A3:
Here you can find the files: https://gitlab.com/barcode/test/-/tree/ci/multi_level_include
The build output is here: https://gitlab.com/barcode/test/-/jobs/1214501093
So is this a problem with my files or is it something else?
The text was updated successfully, but these errors were encountered: