You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/05/05 04:37:10 UTC

[airflow] branch master updated: Fix building assets on ``breeze start-airflow`` (#15663)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 60a3da6  Fix building assets on ``breeze start-airflow`` (#15663)
60a3da6 is described below

commit 60a3da6fecdaa90c41a4fed1d4c8b6c7754b4968
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Wed May 5 05:36:51 2021 +0100

    Fix building assets on ``breeze start-airflow`` (#15663)
    
    Error because `webpack` is not install because `yarn install --frozen-lockfile` is not run:
    
    ```
    root@f5fc5cfc9a43:/opt/airflow# cd /opt/airflow/airflow/www/; yarn dev
    yarn run v1.22.5
    $ NODE_ENV=dev webpack --watch --colors --progress --debug --output-pathinfo --devtool eval-cheap-source-map -
    -mode development
    /bin/sh: 1: webpack: not found
    error Command failed with exit code 127.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    root@f5fc5cfc9a43:/opt/airflow/airflow/www#
    ```
    
    This commits adds `yarn install --frozen-lockfile` to the command which fixes it.
    
    This was missed in https://github.com/apache/airflow/pull/13313/files
---
 scripts/in_container/bin/run_tmux | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/in_container/bin/run_tmux b/scripts/in_container/bin/run_tmux
index e93988a..3c65f3e 100755
--- a/scripts/in_container/bin/run_tmux
+++ b/scripts/in_container/bin/run_tmux
@@ -54,7 +54,7 @@ tmux send-keys 'airflow webserver' C-m
 if [[ -z "${USE_AIRFLOW_VERSION=}" ]]; then
     tmux select-pane -t 0
     tmux split-window -h
-    tmux send-keys 'cd /opt/airflow/airflow/www/; yarn dev' C-m
+    tmux send-keys 'cd /opt/airflow/airflow/www/; yarn install --frozen-lockfile; yarn dev' C-m
 fi
 
 # Attach Session, on the Main window