Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix CLI (#155)

Jakub Novák65337589b0a1
diff --git a/.changeset/curly-bears-protect.md b/.changeset/curly-bears-protect.md
new file mode 100644
index 000000000..7a1eeb768
--- /dev/null
+++ b/.changeset/curly-bears-protect.md
@@ -0,0 +1,5 @@
+---
+'@e2b/cli': patch
+---
+
+Remove content type and fix bug
diff --git a/packages/cli/src/commands/env/create.ts b/packages/cli/src/commands/env/create.ts
index 71b5a9b8e..e42ce9f14 100644
--- a/packages/cli/src/commands/env/create.ts
+++ b/packages/cli/src/commands/env/create.ts
@@ -88,9 +88,7 @@ export const createCommand = new commander.Command('create')
if (!fs.existsSync(tarPath)) throw new Error(`Tar file ${tarPath} does not exist`)
- const buildContextBlob = new Blob([fs.readFileSync(tarPath)], {
- type: 'application/gzip',
- })
+ const buildContextBlob = new Blob([fs.readFileSync(tarPath)])
let dockerfileContent
if (fs.existsSync(`${root}/Dockerfile`)) {
dockerfileContent = fs.readFileSync(`${root}/Dockerfile`, 'utf-8')
diff --git a/packages/cli/src/utils/filesystem.ts b/packages/cli/src/utils/filesystem.ts
index dff409713..5738667b8 100644
--- a/packages/cli/src/utils/filesystem.ts
+++ b/packages/cli/src/utils/filesystem.ts
@@ -5,6 +5,7 @@ import * as fsPromise from 'fs/promises'
import gitIgnore, { Ignore } from 'ignore'
import * as path from 'path'
import tar from 'tar-fs'
+import * as util from 'util'
const walk = util.promisify(fsWalk.walk)