mik-laj commented on a change in pull request #19819:
URL: https://github.com/apache/airflow/pull/19819#discussion_r757169435



##########
File path: 
docs/docker-stack/docker-examples/restricted/restricted_environments.sh
##########
@@ -22,28 +22,29 @@ AIRFLOW_SOURCES="$(cd "$(dirname 
"${BASH_SOURCE[0]}")/../../../../" && pwd)"
 cd "${AIRFLOW_SOURCES}"
 
 # [START download]
+export AIRFLOW_VERSION="2.3.0.dev0"
 rm docker-context-files/*.whl docker-context-files/*.tar.gz 
docker-context-files/*.txt || true
 
 curl -Lo "docker-context-files/constraints-3.7.txt" \
-    
https://raw.githubusercontent.com/apache/airflow/constraints-2.3.0.dev0/constraints-3.7.txt
+    
"https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.7.txt";
 
 # For Airflow pre 2.1 you need to use PIP 20.2.4 to install/download Airflow 
packages.
 pip install pip==20.2.4
 
 pip download --dest docker-context-files \
     --constraint docker-context-files/constraints-3.7.txt  \
-    
"apache-airflow[async,aws,azure,celery,dask,elasticsearch,gcp,kubernetes,postgres,redis,slack,ssh,statsd,virtualenv]==2.0.2"
+    
"apache-airflow[async,aws,azure,celery,dask,elasticsearch,gcp,kubernetes,postgres,redis,slack,ssh,statsd,virtualenv]==${AIRFLOW_VERSION}"

Review comment:
       This field is updated to version according to `setup.py`. 
https://github.com/apache/airflow/blob/aff647715baca7da26edf635abd42c7e911f5313/scripts/ci/pre_commit/pre_commit_update_versions.py#L24-L29
   I can change it, but it will cause a lot of unrelated changes.




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