Skip to content

Conversation

@mishushakov
Copy link
Member

@mishushakov mishushakov commented Oct 28, 2025

Currently, when you provide a simple folder pattern like folder/ to copy() it will not check folders contents for changes (only the folder metadata itself) which leads to stale caches.

This fix appends ** pattern when no pattern is specified for recursive hash computation.


Note

Ensure folder sources without explicit globs are expanded with ** for recursive hashing, adding a glob-detection helper in JS and Python SDKs.

  • Template utils:
    • Recursive hashing for folders: In packages/js-sdk/src/template/utils.ts and packages/python-sdk/e2b/template/utils.py, calculateFilesHash now appends ** to src when it points to a directory without glob patterns, ensuring all nested files are included.
    • Glob detection: Add containsGlobPattern helper to detect glob characters and gate the ** expansion.
  • Changeset: Patch releases for @e2b/python-sdk and e2b.

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

@linear
Copy link

linear bot commented Oct 28, 2025

@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2025

🦋 Changeset detected

Latest commit: 437af90

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@e2b/python-sdk Patch
e2b Patch

Not sure what this means? Click here to learn what changesets are.

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

cursor[bot]

This comment was marked as outdated.

@mishushakov
Copy link
Member Author

Test failing due to some network error on GitHub Actions

@mishushakov mishushakov requested a review from dobrac October 29, 2025 17:27
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.

3 participants