Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/gogf/gf: temporary path problem on windows system #4136

Open
acane77 opened this issue Jan 23, 2025 · 0 comments
Open

os/gogf/gf: temporary path problem on windows system #4136

acane77 opened this issue Jan 23, 2025 · 0 comments
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@acane77
Copy link

acane77 commented Jan 23, 2025

Go version

go version go1.23.3 windows/amd64

GoFrame version

latest

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

using gproc in our code

What did you see happen?

We found this librray created C:\var\tmp\ directory under windows system.

https://github.com/gogf/gf/blob/master/os/gproc/gproc_comm.go#L93

What did you expect to see?

temp files normally shouldn't locatedv in C drive root path, instead they should located in %TMP% (retrieve from environemnt variable) path.

@acane77 acane77 added the bug It is confirmed a bug, but don't worry, we'll handle it. label Jan 23, 2025
@acane77 acane77 changed the title os/gogf/gf: temporary path problem os/gogf/gf: temporary path problem on windows system Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant