runtime/cgo: do not change directory during runtime/cgo init #58225
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
mobile
Android, iOS, and x/mobile
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Darwin
Milestone
In CL 8784,
runtime/cgo
onios
was given special-case code to change the current working directory to the app root.That high-level behavior seems awfully presumptuous and out-of-place in a low-level package like
runtime/cgo
, and it causesruntime/cgo
to depend on theCoreFoundation
framework onios
when it does not need that framework on otherdarwin
platforms.If the
init_working_dir
behavior belongs in the standard library at all, arguably aninit
function in theos
package would be much more appropriate than an ad-hoc side effect inruntime/cgo
.(attn @golang/ios; CC @golang/runtime)
The text was updated successfully, but these errors were encountered: