11class Shadowenv < Formula
22 desc "Reversible directory-local environment variable manipulations"
33 homepage "https://shopify.github.io/shadowenv/"
4- url "https://github.com/Shopify/shadowenv/archive/refs/tags/3.0.3 .tar.gz"
5- sha256 "ad04e1d5ae88e358f0ee6ec987bd88b7f8c489409fafc6286690aeacb074ddea "
4+ url "https://github.com/Shopify/shadowenv/archive/refs/tags/3.3.1 .tar.gz"
5+ sha256 "726c2a655749213cd7f0efe9dca199f65c11b58774c5550ea4834d5b2334b27c "
66 license "MIT"
77
88 # There can be a notable gap between when a version is tagged and a
@@ -14,13 +14,13 @@ class Shadowenv < Formula
1414 end
1515
1616 bottle do
17- sha256 cellar : :any_skip_relocation , arm64_sequoia : "93a3aa92e6d4f3d71f2096def300b3d503b06af579212990958fb29a5cf53dac "
18- sha256 cellar : :any_skip_relocation , arm64_sonoma : "926abc552d85283e6507cd2668bdf5af33ce5d2b0a3515fc14ab3a9250d8c6d3 "
19- sha256 cellar : :any_skip_relocation , arm64_ventura : "801c925456a0220534c28009729ddb366a5925a61857c3ea053d39d6b44982b9 "
20- sha256 cellar : :any_skip_relocation , sonoma : "a584d3fa65f210eb2ea6dffd8d50b59b6cab767f11b7e97cf9bb2dde03fa2f2e "
21- sha256 cellar : :any_skip_relocation , ventura : "50f747135333edf3cc9f6252e6e4abc86ee20523c285af87a0d6411b843ae0d1 "
22- sha256 cellar : :any_skip_relocation , arm64_linux : "304f0b91b0e1699a4dbca9fffe327975fd4f86aa7d0a2a393233619c97d189b5 "
23- sha256 cellar : :any_skip_relocation , x86_64_linux : "4209ba91154dc46bc9254f7117cc25f46a7bc9ee0ce160321cc91d3a1bc81380 "
17+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "dcea2f7cf59a7931a0d01f2418741839db84fe32c63e245b58e8dc7a2cacde4c "
18+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "201b6122ba97b02c416c6e0eaad546c1cf02ce7603b4f2926e8bac164ca55613 "
19+ sha256 cellar : :any_skip_relocation , arm64_ventura : "3410ab00b6cc4e35cf3ec29c63bd94076c277453f773bc2a0ed3231c4a624779 "
20+ sha256 cellar : :any_skip_relocation , sonoma : "f0f2ffb340fb507e7bea9cfab10bf5906a2cd3d0277436927cafab628e009d76 "
21+ sha256 cellar : :any_skip_relocation , ventura : "f8ee16f106a7088f298cde2a4f8086f18487ed55cdfebbab97a695b15b81f641 "
22+ sha256 cellar : :any_skip_relocation , arm64_linux : "153277ad82d51bfa7ae899b1bb8798b863fc421c9c0a7fcfaf0db1bd3662d9ae "
23+ sha256 cellar : :any_skip_relocation , x86_64_linux : "49b2be347183407b5a356c147defe9b8eaf418d735380865e1e1e4250e0b083d "
2424 end
2525
2626 depends_on "rust" => :build
@@ -56,11 +56,11 @@ def install
5656 ] ,
5757 }
5858 # Read ...'\"'\"'... on the next line as a ruby `...' + "'" + '...` but for bash
59- shadowenv_command = "#{ bin } /shadowenv hook '\" '\" '#{ hash } :#{ data . to_json } '\" '\" ' 2> /dev/null "
59+ shadowenv_cmd = "export __shadowenv_data= '\" '\" '#{ hash } :#{ data . to_json } '\" '\" '; #{ bin } /shadowenv hook "
6060 print_vars =
6161 "echo EXAMPLE:$EXAMPLE; echo EXAMPLE2:$EXAMPLE2; echo EXAMPLE3:$EXAMPLE3; echo EXAMPLE_PATH:$EXAMPLE_PATH;"
6262
6363 assert_equal expected_output ,
64- shell_output ( "bash -c '#{ environment } #{ print_vars } echo ---; eval \" $(#{ shadowenv_command } )\" ; #{ print_vars } '" )
64+ shell_output ( "bash -c '#{ environment } #{ print_vars } echo ---; eval \" $(#{ shadowenv_cmd } )\" ; #{ print_vars } '" )
6565 end
6666end
0 commit comments