Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): upgrade the actually-installed Homebrew formula #6247

Closedrohitashwin(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/6247/headopened View on GitHub

Showing 2 changed files with 85 additions and 3 deletions.

x
0 of 2 viewed, 2 left
50 additions and 0 deletionsapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -332,6 +332,56 @@
});
});
​
+ it("keeps the tap-qualified Homebrew formula when the Cellar path only has the bare name", () => {
+ expect(
+ scopedPackageToolUpdate.resolve({
+ binaryPath: "/opt/homebrew/bin/scoped-package-tool",
+ resolvedCommandPath: "/opt/homebrew/bin/scoped-package-tool",
+ realCommandPath: "/opt/homebrew/Cellar/scoped-package-tool/1.0.0/bin/scoped-package-tool",
+ env: {
+ PATH: "",
+ },
+ }),
+ ).toEqual({
+ provider: driver("scopedPackageTool"),
+ packageName: "@example/scoped-package-tool",
+ update: {
+ command: "brew upgrade example/tap/scoped-package-tool",
+​
+ executable: "brew",
+​
+ args: ["upgrade", "example/tap/scoped-package-tool"],
+​
+ lockKey: "homebrew",
+ },
+ });
+ });
+​
+ it("upgrades the actually-installed Homebrew formula, not the definition's default", () => {