diff options
| author | adamdottv <[email protected]> | 2025-05-15 12:52:42 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-15 12:52:42 -0500 |
| commit | aa8b3ce1eedff364e4b2b325f63b538a784ea01f (patch) | |
| tree | da22699f37103e9bfcd405b544a0e681cf848d5c | |
| parent | a65e593ab4f35e1a647832ba36be2c696e1f5165 (diff) | |
| download | opencode-aa8b3ce1eedff364e4b2b325f63b538a784ea01f.tar.gz opencode-aa8b3ce1eedff364e4b2b325f63b538a784ea01f.zip | |
fix: init ordering
| -rw-r--r-- | internal/app/app.go | 2 | ||||
| -rw-r--r-- | internal/fileutil/fileutil.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 6c2825047..e7bbfbfa1 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -10,6 +10,7 @@ import ( "log/slog" "github.com/sst/opencode/internal/config" + "github.com/sst/opencode/internal/fileutil" "github.com/sst/opencode/internal/history" "github.com/sst/opencode/internal/llm/agent" "github.com/sst/opencode/internal/logging" @@ -72,6 +73,7 @@ func New(ctx context.Context, conn *sql.DB) (*App, error) { slog.Error("Failed to initialize status service", "error", err) return nil, err } + fileutil.Init() app := &App{ CurrentSession: &session.Session{}, diff --git a/internal/fileutil/fileutil.go b/internal/fileutil/fileutil.go index 97d0f747e..b48152f7a 100644 --- a/internal/fileutil/fileutil.go +++ b/internal/fileutil/fileutil.go @@ -19,7 +19,7 @@ var ( fzfPath string ) -func init() { +func Init() { var err error rgPath, err = exec.LookPath("rg") if err != nil { |
