jscheffl commented on code in PR #53577:
URL: https://github.com/apache/airflow/pull/53577#discussion_r2243784768


##########
scripts/ci/pre_commit/compile_provider_assets.py:
##########
@@ -94,10 +104,10 @@ def compile_assets(www_directory: Path):
             sys.exit(result.returncode)
     subprocess.check_call(["yarn", "run", "build"], 
cwd=os.fspath(www_directory), env=env)
     new_hash = get_directory_hash(www_directory, 
skip_path_regexps=SKIP_PATH_REGEXPS)
-    FAB_PROVIDER_WWW_HASH_FILE.write_text(new_hash + "\n")
+    provider_paths["hash"].write_text(new_hash + "\n")
     print(f"Assets compiled successfully. New hash: {new_hash}")
 
 
 if __name__ == "__main__":
-    # Compile assets for fab provider
-    compile_assets(FAB_PROVIDER_WWW_PATH)
+    provider = sys.argv[1]
+    compile_assets(provider)

Review Comment:
   Applied with commit 
[0a4c888](https://github.com/apache/airflow/pull/53577/commits/0a4c8880a7729d9ab0ed9a8dda7abc2412ff2f76)
 with slight adjustments



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to