Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
## New additions

## Fixes and improvements
* Fixed `SandboxEnvBuilder` failing with `SIGABRT` on macOS when creating a codegen sandbox virtual environment. On macOS, `python-build-standalone` (used by hatch and uv) embeds a `@executable_path`-relative reference to `libpython`; copying the binary into the venv breaks dyld resolution. The venv is now created with symlinks on macOS so the dynamic linker can resolve the library from its original location.


# v3.17.0
Expand Down
4 changes: 4 additions & 0 deletions src/snowflake/cli/_plugins/nativeapp/codegen/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ def __init__(self, path: Path, **kwargs) -> None:
Parameters:
path (Path): The directory in which the sandbox environment will be created.
"""
# On macOS, python-build-standalone (used by hatch/uv) embeds
# @executable_path/../lib/libpythonX.Y.dylib. Copying the binary into the venv
# breaks dyld resolution; symlinking lets macOS resolve it to the original location.
kwargs.setdefault("symlinks", sys.platform == "darwin")
super().__init__(**kwargs)
self.path = path
self._context: Any = None # cached context
Expand Down