Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): avoid treating Ubuntu binaries as Homebrew-managed #8832

Closedasfires(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8832/headopened View on GitHub

Showing 2 changed files with 16 additions and 2 deletions.

x
0 of 2 viewed, 2 left
15 additions and 0 deletionsapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -332,6 +332,21 @@
});
});
​
+ it("does not treat an Ubuntu /usr/local/bin executable as Homebrew-managed", () => {
+ expect(
+ packageToolUpdate.resolve({
+ binaryPath: "/usr/local/bin/package-tool",
+ env: {
+ PATH: "",
+ },
+ }),
+ ).toEqual({
+ provider: driver("packageTool"),
+ packageName: "@example/package-tool",
+ update: null,
+ });
+ });
+​
it.effect(
"switches native-package-tool to native updates when the binary resolves through the native installer",
() =>
1 addition and 2 deletionsapps/server/src/provider/providerMaintenance.tsModified
View file
@@ -268,8 +268,7 @@
normalized.includes("/opt/homebrew/caskroom/") ||
normalized.includes("/usr/local/caskroom/") ||
normalized.includes("/homebrew/caskroom/") ||