nacos-sdk-go
nacos-sdk-go copied to clipboard
The local cache file create error.
What version of nacos-sdk-go are you using?
v2.2.5
What version of nacos-sever are you using?
--
What version of Go are you using (go version
)?
1.18
What operating system (Linux, Windows, …) and version?
Linux&windows
What did you do?
If possible, provide a recipe for reproducing the error.
What did you expect to see?
use filepath.Join to replace the os.PathSeparator
What did you see instead?
https://github.com/nacos-group/nacos-sdk-go/blob/389f6b6dbd3808ccbd672a6507d5142a811c3253/clients/cache/disk_cache.go#L38-L44
2024-01-31T10:28:50.401+0800 ERROR cache/disk_cache.go:105 make dir failed, dir path /tmp/nacos/cache\config, err: mkdir /tmp/nacos/cache: The system cannot find the path specified.