-
Notifications
You must be signed in to change notification settings - Fork 18.1k
os.exec and file path resolving #73910
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
Comments
Closing as working as intended. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
This is an obvious bug, because itself command environment variables are not applied when path resolving. |
Yes, it's the same bug. |
Go version
1.24.3
Output of
go env
in your module/workspace:What did you do?
I don't know how such a bug could have gone unnoticed for years, but it still exists.
It's working
But
What did you see happen?
I see a big problem in resolving file paths.
What did you expect to see?
Need to change the resolving of file paths not at the time of creation of exec command object, but at the time of its launch. And rewrite it so that the field cmd.Env is also used.
The text was updated successfully, but these errors were encountered: