Skip to content

runtime/cgo: do not change directory during runtime/cgo init #58225

@bcmills

Description

@bcmills

In CL 8784, runtime/cgo on ios 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 causes runtime/cgo to depend on the CoreFoundation framework on ios when it does not need that framework on other darwin platforms.

If the init_working_dir behavior belongs in the standard library at all, arguably an init function in the os package would be much more appropriate than an ad-hoc side effect in runtime/cgo.

(attn @golang/ios; CC @golang/runtime)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.OS-Darwincompiler/runtimeIssues related to the Go compiler and/or runtime.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions