You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/03/07 16:16:20 UTC

[airflow] 13/23: Fix compile www assets dev (#29769)

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

ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 1d997fd381d4ad309baf002535fedb4660740830
Author: Pierre Jeambrun <pi...@gmail.com>
AuthorDate: Sun Feb 26 11:25:40 2023 +0100

    Fix compile www assets dev (#29769)
    
    * Fix compile www assets dev
    
    * Add parents True
    
    (cherry picked from commit a0e13370053452e992d45e7956ff33290563b3a0)
---
 scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py b/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
index fb17c88f10..1b90c42ba6 100755
--- a/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
+++ b/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
@@ -35,6 +35,7 @@ WWW_ASSET_OUT_DEV_MODE_FILE = WWW_CACHE_DIR / "asset_compile_dev_mode.out"
 
 if __name__ == "__main__":
     www_directory = AIRFLOW_SOURCES_PATH / "airflow" / "www"
+    WWW_CACHE_DIR.mkdir(parents=True, exist_ok=True)
     if WWW_HASH_FILE.exists():
         # cleanup hash of www so that next compile-assets recompiles them
         WWW_HASH_FILE.unlink()