You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/26 11:45:39 UTC

[GitHub] [arrow] assignUser commented on a diff in pull request #14501: ARROW-18157: [Dev][Archery] "archery docker run" sets env var to None when inherited

assignUser commented on code in PR #14501:
URL: https://github.com/apache/arrow/pull/14501#discussion_r1005572477


##########
dev/archery/archery/docker/core.py:
##########
@@ -342,7 +342,8 @@ def run(self, service_name, command=None, *, env=None, volumes=None,
 
             # append env variables from the compose conf
             for k, v in service.get('environment', {}).items():
-                args.extend(['-e', '{}={}'.format(k, v)])
+                if v is not None:
+                    args.extend(['-e', '{}={}'.format(k, v)])

Review Comment:
   archery already gets the enclosing env vars: 
   https://github.com/apache/arrow/blob/master/dev/archery/archery/docker/core.py#L81 
   so no need to do it manually here.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org