Skip to content

Conversation

shin-
Copy link
Contributor

@shin- shin- commented Mar 26, 2018

Signed-off-by: Joffrey F <joffrey@docker.com>
@shin- shin- added this to the 3.2.0 milestone Mar 26, 2018
Signed-off-by: Joffrey F <joffrey@docker.com>
@shin- shin- force-pushed the c5823-out-of-ctx-dockerfile branch from 5c6d557 to cdbbb06 Compare March 26, 2018 20:52
@shin- shin- requested a review from mefyl March 26, 2018 21:06
if files is None:
files = build_file_list(root)
for path in files:
if path in [e[0] for e in extra_files]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking, but any(e[0] == path for e in extra_files) won't build the whole list in memory. Maybe even building a set(e[0] for e in extra_files) before to avoid iterating too many times.

Copy link
Contributor

@mefyl mefyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit on extra_files, but LGTM anyway.

Signed-off-by: Joffrey F <joffrey@docker.com>
@shin-
Copy link
Contributor Author

shin- commented Mar 27, 2018

Thank you for reviewing! 👍

@thaJeztah
Copy link
Member

Thanks @shin- ! (Not enough experience with python though to review 😅)

@shin- shin- merged commit 899f3cf into master Mar 27, 2018
@shin- shin- deleted the c5823-out-of-ctx-dockerfile branch June 29, 2018 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants