@vercel/container 25.0.0 → 25.0.1-snapshot-18a93d777921

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4274,26 +4274,6 @@ async function buildAndPushImage(params) {
4274
4274
  }
4275
4275
  );
4276
4276
  }
4277
- function resolveDaemonContextDir(options, daemon) {
4278
- const contextDir = import_node_path23.default.join(options.workPath, daemon.root);
4279
- const real = (p) => {
4280
- try {
4281
- return (0, import_node_fs17.realpathSync)(p);
4282
- } catch {
4283
- return import_node_path23.default.resolve(p);
4284
- }
4285
- };
4286
- const relative3 = import_node_path23.default.relative(
4287
- real(options.repoRootPath || options.workPath),
4288
- real(contextDir)
4289
- );
4290
- if (import_node_path23.default.isAbsolute(relative3) || relative3 === ".." || relative3.startsWith(`..${import_node_path23.default.sep}`)) {
4291
- throw new Error(
4292
- `Daemon "${daemon.name}" has root "${daemon.root}", which is outside the repository.`
4293
- );
4294
- }
4295
- return contextDir;
4296
- }
4297
4277
  async function resolveImageHandler(options, source, buildahClient, span, schedulesCommand) {
4298
4278
  const { config, meta } = options;
4299
4279
  const { daemon } = config;
@@ -4367,7 +4347,7 @@ async function resolveImageHandler(options, source, buildahClient, span, schedul
4367
4347
  options.service?.name ?? import_node_path23.default.basename(dockerfileRel).split(".")[0]
4368
4348
  );
4369
4349
  const tag = resolveImageTag();
4370
- const contextDir = daemon ? resolveDaemonContextDir(options, daemon) : schedulesCommand || options.service ? options.workPath : import_node_path23.default.dirname(dockerfilePath);
4350
+ const contextDir = daemon || schedulesCommand || options.service ? options.workPath : import_node_path23.default.dirname(dockerfilePath);
4371
4351
  const contextIsRoot = Boolean(daemon || schedulesCommand || options.service) || import_node_path23.default.dirname(import_node_path23.default.normalize(dockerfileRel)) === ".";
4372
4352
  const buildArgs = buildArgsFromEnv(meta?.buildEnv);
4373
4353
  span?.setAttributes({
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/container",
3
- "version": "25.0.0",
3
+ "version": "25.0.1-snapshot-18a93d777921",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",