From 03cf0e0180b3d013f17b301b41ab86e656b1a4ca Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 30 Jul 2020 14:26:27 -0400 Subject: [PATCH] update-python-resources: add --no-cache-dir flag --- Library/Homebrew/utils/pypi.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 486462be19..ec9911c5ce 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -53,11 +53,13 @@ module PyPI end ohai "Retrieving PyPI dependencies for \"#{pypi_name}==#{version}\"" if !print_only && !silent - pipgrip_output = Utils.popen_read Formula["pipgrip"].bin/"pipgrip", "--json", "#{pypi_name}==#{version}" + pipgrip_output = Utils.popen_read Formula["pipgrip"].bin/"pipgrip", "--json", "--no-cache-dir", + "#{pypi_name}==#{version}" unless $CHILD_STATUS.success? odie <<~EOS Unable to determine dependencies for \"#{pypi_name}\" because of a failure when running - `pipgrip --json #{pypi_name}==#{version}`. Please update the resources for \"#{formula.name}\" manually. + `pipgrip --json --no-cache-dir #{pypi_name}==#{version}`. + Please update the resources for \"#{formula.name}\" manually. EOS end