Skip to content

Conversation

tavva
Copy link

@tavva tavva commented Jun 27, 2025

Resolves issue where macOS extended attributes (like com.apple.provenance) caused Docker putArchive operations to fail with "operation not supported" errors. Simplifies tar command construction to reliably exclude extended attributes on macOS using --no-xattrs and --no-fflags flags.

Fixes #21

tavva added 2 commits June 27, 2025 12:25
Resolves issue where macOS extended attributes (like com.apple.provenance)
caused Docker putArchive operations to fail with "operation not supported"
errors. Simplifies tar command construction to reliably exclude extended
attributes on macOS using --no-xattrs and --no-fflags flags.

Fixes textcortex#21
This ensures that any changes to a custom Dockerfile are immediately reflected
in the built image, rather than using a potentially outdated cached version.
if (process.platform === "darwin") {
tarCommand += " --no-xattrs --no-fflags";
}
tarCommand += ` -C "${os.homedir()}" .claude`;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: MacOS Tar Flags Unreachable

The macOS-specific tar flags (--no-xattrs --no-fflags) for copying the .claude directory are unreachable. The if (process.platform === 'darwin') check is nested within a block that is explicitly skipped on macOS, making this logic dead code.

Fix in Cursor Fix in Web

@tavva tavva closed this Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claude-sandbox start error

1 participant