Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correctly normalize to forward slash the path when creating tar.gz fo…
…r Connect deploys

std/tar will create folders based on file paths used, but it requires using / and not \\ in path. This is a problem on Windows, where the path separator is \\. This commit normalize the path to use / instead of \\ when creating the tar.gz file for Connect deploys.
  • Loading branch information
cderv committed Sep 24, 2025
commit 64656b78fd62246b4929d5fd76b43ac7d4303013
3 changes: 2 additions & 1 deletion src/deno_ral/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import { TarStream, type TarStreamInput } from "tar/tar-stream";
import { join } from "../deno_ral/path.ts";
import { pathWithForwardSlashes } from "../core/path.ts";

/**
* Creates a tar archive from the specified files and directories.
Expand All @@ -31,7 +32,7 @@ export async function createTarFromFiles(
const stat = await Deno.stat(fullPath);

// Use original path for archive, full path for reading
const archivePath = path;
const archivePath = pathWithForwardSlashes(path);

if (stat.isDirectory) {
// Handle directory
Expand Down
Loading