You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/22 21:44:10 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #14347: Fix caching of python images during builds

potiuk commented on a change in pull request #14347:
URL: https://github.com/apache/airflow/pull/14347#discussion_r580612782



##########
File path: scripts/ci/libraries/_initialization.sh
##########
@@ -726,12 +728,8 @@ function initialization::get_environment_for_builds_on_ci() {
         export CI_REF="${CI_REF="refs/head/master"}"
     fi
 
-    if [[ ${VERBOSE} == "true" && ${PRINT_INFO_FROM_SCRIPTS} == "true" ]]; then
-        initialization::summarize_build_environment
-    fi
-
     if [[ -z "${LIBRARY_PATH:-}" && -n "${LD_LIBRARY_PATH:-}" ]]; then
-      export LIBRARY_PATH="$LD_LIBRARY_PATH"
+      export LIBRARY_PATH="${LD_LIBRARY_PATH}"

Review comment:
       This is something I learned to always use braces for variables. While they are optional, they give clear boundaries. So I add them by default for all variables always. I don't even think about it when I do whenever I am around such variable. 
   
   It's also consistent with Google shell guide which we adopted: 
   
   https://google.github.io/styleguide/shellguide.html#variable-expansion
   
   > In order of precedence: Stay consistent with what you find; quote your variables; prefer "${var}" over "$var".
   
   > Don’t brace-delimit single character shell specials / positional parameters, unless strictly necessary or avoiding deep confusion.
   > Prefer brace-delimiting all other variables.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org