Skip to content

Commit 30a8116

Browse files
feat(flutter): add CI env var (#349)
* feat: add CI env var * docs: add reason for adding CI env --------- Co-authored-by: Steven Johnson <[email protected]>
1 parent 50a5b9b commit 30a8116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

earthly/flutter/Earthfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ flutter-base:
3939

4040
COPY +flutter-src/flutter /usr/local
4141
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:${PATH}"
42+
# Flutter prints warnings when used by root user but omits them if has CI env flag found.
43+
# script: https://github.com/flutter/flutter/blob/master/bin/internal/shared.sh#L214
44+
ENV CI="true"
4245
RUN flutter config --no-analytics
4346
RUN flutter --version
4447
RUN flutter doctor -v

0 commit comments

Comments
 (0)