os.UserHomeDir() error silently ignored - config files written to / #7
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
cmd/ocgo/main.go:1459:If
os.UserHomeDir()fails (e.g. user not in/etc/passwd),homeis"", and files are written to/.config/ocgo/. Same issue incodexConfigFile()andcodexModelCatalogFile().Fix: Return an error on failure instead of ignoring it.