Merge pull request '[agent/claude:sonnet] Fix these issues: 1) Update CLAUDE.md — replace outdated `...' (#2) from agent/fix-these-issues--1--update-claude-md into main

This commit is contained in:
Virgil 2026-03-17 08:02:25 +00:00
commit 9a12aa8d7d
2 changed files with 8 additions and 10 deletions

View file

@ -7,10 +7,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
This project uses the Core CLI (`core` binary), not `go` directly.
```bash
core go test # run all tests
core go test --run TestConfig_Get_Good # run a single test
core go cov # test with coverage
core go cov --open # coverage + open HTML report
go test ./... # run all tests
go test -run TestConfig_Get_Good ./... # run a single test
go test -cover ./... # test with coverage
core go qa # format, vet, lint, test
core go qa full # adds race detector, vuln scan, security audit

View file

@ -11,7 +11,6 @@
package config
import (
"fmt"
"iter"
"maps"
"os"
@ -109,7 +108,7 @@ func (c *Config) LoadFile(m coreio.Medium, path string) error {
content, err := m.Read(path)
if err != nil {
return coreerr.E("config.LoadFile", fmt.Sprintf("failed to read config file: %s", path), err)
return coreerr.E("config.LoadFile", "failed to read config file: "+path, err)
}
ext := filepath.Ext(path)
@ -123,13 +122,13 @@ func (c *Config) LoadFile(m coreio.Medium, path string) error {
// Load into file-backed viper
c.f.SetConfigType(configType)
if err := c.f.MergeConfig(strings.NewReader(content)); err != nil {
return coreerr.E("config.LoadFile", fmt.Sprintf("failed to parse config file (f): %s", path), err)
return coreerr.E("config.LoadFile", "failed to parse config file (f): "+path, err)
}
// Load into full viper
c.v.SetConfigType(configType)
if err := c.v.MergeConfig(strings.NewReader(content)); err != nil {
return coreerr.E("config.LoadFile", fmt.Sprintf("failed to parse config file (v): %s", path), err)
return coreerr.E("config.LoadFile", "failed to parse config file (v): "+path, err)
}
return nil
@ -150,11 +149,11 @@ func (c *Config) Get(key string, out any) error {
}
if !c.v.IsSet(key) {
return coreerr.E("config.Get", fmt.Sprintf("key not found: %s", key), nil)
return coreerr.E("config.Get", "key not found: "+key, nil)
}
if err := c.v.UnmarshalKey(key, out); err != nil {
return coreerr.E("config.Get", fmt.Sprintf("failed to unmarshal key: %s", key), err)
return coreerr.E("config.Get", "failed to unmarshal key: "+key, err)
}
return nil
}