nacos-group / nacos-sdk-go

Nacos client in Golang
Apache License 2.0
1.14k stars 342 forks source link

The local cache file create error. #723

Open brotherlu-xcq opened 10 months ago

brotherlu-xcq commented 10 months ago

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.

only21tender commented 5 months ago

I met the same question, set the log or cache path can not read,and return error log like dir path /tmp/nacos/cache\config I used nacos-go-sdk version github.com/nacos-group/nacos-sdk-go/v2,and my go version is 1.22