Taragolis commented on code in PR #37845:
URL: https://github.com/apache/airflow/pull/37845#discussion_r1509922170
##########
scripts/docker/common.sh:
##########
@@ -95,6 +95,18 @@ function common::get_constraints_location() {
python_version="$(python --version 2>/dev/stdout | cut -d " " -f 2 |
cut -d "." -f 1-2)"
AIRFLOW_CONSTRAINTS_LOCATION="${constraints_base}/${AIRFLOW_CONSTRAINTS_MODE}-${python_version}.txt"
fi
+
+ if [[ ${AIRFLOW_CONSTRAINTS_LOCATION} =~ http.* ]]; then
+ echo
+ echo "${COLOR_BLUE}Downloading constraints from
${AIRFLOW_CONSTRAINTS_LOCATION} to ${HOME}/constraints.txt ${COLOR_RESET}"
+ echo
+ curl -o "${HOME}/constraints.txt" "${AIRFLOW_CONSTRAINTS_LOCATION}"
>/dev/null
Review Comment:
small nit
```suggestion
curl -s -o "${HOME}/constraints.txt"
"${AIRFLOW_CONSTRAINTS_LOCATION}"
```
--
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]