From 2e167d546f1439e1961788c8af953609506e07a9 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 12 Aug 2022 12:25:57 +0800 Subject: [PATCH] gitfs: fix `python3.9` references. Fixes a CI failure seen at #107517. --- Formula/gitfs.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/gitfs.rb b/Formula/gitfs.rb index 1ef0dcfdc1e3..aed816bb042f 100644 --- a/Formula/gitfs.rb +++ b/Formula/gitfs.rb @@ -90,8 +90,8 @@ def caveats end test do - xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3" - ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages" + python = "python3.9" + ENV.prepend_create_path "PYTHONPATH", libexec/Language::Python.site_packages(python) (testpath/"test.py").write <<~EOS import gitfs @@ -99,7 +99,7 @@ def caveats pygit2.init_repository('testing/.git', True) EOS - system Formula["python@3.9"].opt_bin/"python3", "test.py" + system python, "test.py" assert_predicate testpath/"testing/.git/config", :exist? cd "testing" do system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew-core.git"