mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
661ce5e311
- add build tags to exclude context_seahorse.go on mipsle and netbsd - add context_seahorse_unsupported.go to keep registration and return a clear runtime error - remove unused indirect dependency github.com/reiver/go-porterstemmer from go.mod and go.sum
21 lines
569 B
Go
21 lines
569 B
Go
//go:build mipsle || netbsd
|
|
|
|
package agent
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
// newSeahorseContextManager is unavailable on platforms where modernc sqlite/libc
|
|
// currently has no stable build path for this project.
|
|
func newSeahorseContextManager(_ json.RawMessage, _ *AgentLoop) (ContextManager, error) {
|
|
return nil, fmt.Errorf("seahorse context manager is unavailable on this platform")
|
|
}
|
|
|
|
func init() {
|
|
if err := RegisterContextManager("seahorse", newSeahorseContextManager); err != nil {
|
|
panic(fmt.Sprintf("register seahorse context manager: %v", err))
|
|
}
|
|
}
|