We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ac19ec + 7d10a9b commit 62822cfCopy full SHA for 62822cf
2 files changed
.husky/pre-push
@@ -1,2 +1,3 @@
1
#!/bin/sh
2
+export PATH="$HOME/.bun/bin:$PATH"
3
bun typecheck
packages/opencode/src/config/config.ts
@@ -7,6 +7,7 @@ import { ModelsDev } from "../provider/models"
7
import { mergeDeep, pipe } from "remeda"
8
import { Global } from "../global"
9
import fs from "fs/promises"
10
+import { constants } from "fs"
11
import { lazy } from "../util/lazy"
12
import { NamedError } from "../util/error"
13
import { Flag } from "../flag/flag"
@@ -896,7 +897,7 @@ export namespace Config {
896
897
898
// Check write permissions
899
try {
- await fs.access(Global.Path.config, fs.constants.W_OK)
900
+ await fs.access(Global.Path.config, constants.W_OK)
901
} catch (err) {
902
throw new UpdateError(
903
{
0 commit comments