Skip to content

Commit 2f489b3

Browse files
authored
chore: update bun install commands to use --frozen-lockfile (#4398)
1 parent 9b0a8f5 commit 2f489b3

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/actions/perf-measures/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
- uses: oven-sh/setup-bun@v2
1515
with:
1616
bun-version-file: '.tool-versions'
17-
- run: bun install
17+
- run: bun install --frozen-lockfile
1818
shell: bash
1919

2020
- name: Performance measurement of type check (tsc)

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: oven-sh/setup-bun@v2
2424
with:
2525
bun-version-file: '.tool-versions'
26-
- run: bun install
26+
- run: bun install --frozen-lockfile
2727
- run: bun run format:fix
2828
- run: bun run lint:fix
2929
- name: Apply fixes

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- uses: oven-sh/setup-bun@v2
4343
with:
4444
bun-version-file: '.tool-versions'
45-
- run: bun install
45+
- run: bun install --frozen-lockfile
4646
- run: bun run format
4747
- run: bun run lint
4848
- run: bun run editorconfig-checker -format github-actions
@@ -92,7 +92,7 @@ jobs:
9292
- uses: oven-sh/setup-bun@v2
9393
with:
9494
bun-version-file: '.tool-versions'
95-
- run: bun install
95+
- run: bun install --frozen-lockfile
9696
- run: bun run test:bun
9797
- uses: actions/upload-artifact@v4
9898
with:
@@ -117,7 +117,7 @@ jobs:
117117
- uses: oven-sh/setup-bun@v2
118118
with:
119119
bun-version-file: '.tool-versions'
120-
- run: bun install
120+
- run: bun install --frozen-lockfile
121121
- run: bun run build
122122
- run: bun run test:fastly
123123

@@ -135,7 +135,7 @@ jobs:
135135
- uses: oven-sh/setup-bun@v2
136136
with:
137137
bun-version-file: '.tool-versions'
138-
- run: bun install
138+
- run: bun install --frozen-lockfile
139139
- run: bun run build
140140
- run: bun run test:node
141141

@@ -150,7 +150,7 @@ jobs:
150150
- uses: oven-sh/setup-bun@v2
151151
with:
152152
bun-version-file: '.tool-versions'
153-
- run: bun install
153+
- run: bun install --frozen-lockfile
154154
- run: bun run build
155155
- run: bun run test:workerd
156156

@@ -162,7 +162,7 @@ jobs:
162162
- uses: oven-sh/setup-bun@v2
163163
with:
164164
bun-version-file: '.tool-versions'
165-
- run: bun install
165+
- run: bun install --frozen-lockfile
166166
- run: bun run build
167167
- run: bun run test:lambda
168168

@@ -197,7 +197,7 @@ jobs:
197197
- uses: oven-sh/setup-bun@v2
198198
with:
199199
bun-version-file: '.tool-versions'
200-
- run: bun install
200+
- run: bun install --frozen-lockfile
201201
- name: Install bombardier
202202
run: |
203203
wget -O bombardier https://github.com/codesenberg/bombardier/releases/download/v2.0.1/bombardier-linux-amd64

.github/workflows/cr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
bun-version-file: '.tool-versions'
3030

3131
- name: Install Dependencies
32-
run: bun install
32+
run: bun install --frozen-lockfile
3333

3434
- name: Build
3535
run: bun run build

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tasks:
22
- name: Setup
3-
init: bun install --no-save
3+
init: bun install --frozen-lockfile
44
image:
55
file: ./.devcontainer/Dockerfile
66
vscode:

benchmarks/http-server/benchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const buildVersion = async (version: string, name: string) => {
113113
}
114114

115115
await runCommand(`git checkout ${version}`, HONO_ROOT)
116-
await runCommand('bun install', HONO_ROOT)
116+
await runCommand('bun install --frozen-lockfile', HONO_ROOT)
117117
// No build needed - use src directly
118118
}
119119

benchmarks/routers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Tested routes:
1616
Install:
1717

1818
```
19-
bun install
19+
bun install --frozen-lockfile
2020
```
2121

2222
For Node.js:

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `honojs/hono` project uses [Bun](https://bun.sh/) as its package manager. De
2525
After that, please install the dependency environment.
2626

2727
```bash
28-
bun install
28+
bun install --frozen-lockfile
2929
```
3030

3131
## PRs

0 commit comments

Comments
 (0)