Skip to content

Commit 6bcde16

Browse files
authored
chore: update formula path (#1614)
1 parent 6c75482 commit 6bcde16

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/build/src/homebrew/generate-formula.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Homebrew generate-formula', function () {
4040

4141
beforeEach(function () {
4242
getFileContent = sinon.stub();
43-
getFileContent.withArgs('Formula/mongosh.rb', 'master').resolves({
43+
getFileContent.withArgs('Formula/m/mongosh.rb', 'master').resolves({
4444
blobSha: 'blobSha',
4545
content: VALID_FORMULA,
4646
});

packages/build/src/homebrew/generate-formula.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function generateUpdatedFormula(
77
isDryRun: boolean
88
): Promise<string | null> {
99
const currentFormula = await homebrewCore.getFileContent(
10-
'Formula/mongosh.rb',
10+
'Formula/m/mongosh.rb',
1111
'master'
1212
);
1313

packages/build/src/homebrew/update-homebrew-fork.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Homebrew update-homebrew-fork', function () {
3030
});
3131

3232
it('writes updated formula and pushes changes', async function () {
33-
getFileContent.rejects().withArgs('Formula/mongosh.rb').resolves({
33+
getFileContent.rejects().withArgs('Formula/m/mongosh.rb').resolves({
3434
blobSha: 'sha1',
3535
content: 'old formula',
3636
});
@@ -53,7 +53,7 @@ describe('Homebrew update-homebrew-fork', function () {
5353
.withArgs(
5454
'mongosh 1.0.0',
5555
'sha1',
56-
'Formula/mongosh.rb',
56+
'Formula/m/mongosh.rb',
5757
'updated formula',
5858
'mongosh-1.0.0-sha'
5959
)
@@ -76,7 +76,7 @@ describe('Homebrew update-homebrew-fork', function () {
7676
});
7777

7878
it('does not push changes if formula is same', async function () {
79-
getFileContent.rejects().withArgs('Formula/mongosh.rb').resolves({
79+
getFileContent.rejects().withArgs('Formula/m/mongosh.rb').resolves({
8080
blobSha: 'sha1',
8181
content: 'formula',
8282
});

packages/build/src/homebrew/update-homebrew-fork.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function updateHomebrewFork(
1717
params: UpdateHomebrewParameters
1818
): Promise<string | undefined> {
1919
const branchName = `mongosh-${params.packageVersion}-${params.packageSha}`;
20-
const formulaPath = 'Formula/mongosh.rb';
20+
const formulaPath = 'Formula/m/mongosh.rb';
2121

2222
const { content: currentContent, blobSha } =
2323
await params.homebrewCore.getFileContent(formulaPath, 'master');

0 commit comments

Comments
 (0)