Skip to content

Commit 9710784

Browse files
Fixed OPENCODE_CONFIG_DIR to load config files.
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 2535f9f commit 9710784

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export namespace Config {
7575
for (const dir of directories) {
7676
await assertValid(dir)
7777

78-
if (dir.endsWith(".opencode")) {
78+
if (dir.endsWith(".opencode") || dir === Flag.OPENCODE_CONFIG_DIR) {
7979
for (const file of ["opencode.jsonc", "opencode.json"]) {
8080
log.debug(`loading config from ${path.join(dir, file)}`)
8181
result = mergeDeep(result, await loadFile(path.join(dir, file)))

0 commit comments

Comments
 (0)