We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1102973 commit 4e9ec76Copy full SHA for 4e9ec76
1 file changed
internal/verda-cli/cmd/util/versionhint.go
@@ -44,7 +44,7 @@ func VersionCachePath() (string, error) {
44
// LoadVersionCache reads the version cache from disk.
45
// Returns an empty cache (no error) if the file is missing or corrupt.
46
func LoadVersionCache(path string) (*VersionCache, error) {
47
- data, err := os.ReadFile(path)
+ data, err := os.ReadFile(filepath.Clean(path))
48
if err != nil {
49
// Missing file is not an error — just return empty cache.
50
return &VersionCache{}, nil //nolint:nilerr // intentional: missing file → empty cache
0 commit comments