Skip to content

Conversation

@mishushakov
Copy link
Member

@mishushakov mishushakov commented Jan 3, 2026

another go at the effort started in #1057


Note

Improves COPY handling to support absolute and escaped-relative paths by normalizing sources and attaching a per-instruction contextPath used end-to-end.

  • Introduces normalizeCopySourcePath/normalize_copy_source_path; COPY now stores normalized src and contextPath
  • Updates hashing/upload flow to use instruction.contextPath for calculateFilesHash, readDockerignore, and uploadFile
  • Adjusts globbing/tar behavior to handle absolute patterns (no cwd, POSIX paths) in getAllFilesInPath and tar path construction
  • Extends Instruction types with optional contextPath
  • Adds JS and Python (sync/async) tests for absolute-path COPY scenarios

Written by Cursor Bugbot for commit 60cc754. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Jan 3, 2026

⚠️ No Changeset found

Latest commit: 60cc754

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5f061e084

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@mishushakov mishushakov marked this pull request as draft January 6, 2026 15:30
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.

2 participants