summaryrefslogtreecommitdiff
path: root/cli/tools/registry/tar.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-26 11:35:29 -0400
committerGitHub <noreply@github.com>2024-07-26 15:35:29 +0000
commitbee16c54abada37b98808b5ef85be534fb3b7ea9 (patch)
tree920e2a3049f166402bed177456d4c35e2b94702f /cli/tools/registry/tar.rs
parent7776636c2efc3db07b965166a9982fc3d5ef21ce (diff)
fix(publish): workspace included license file had incorrect path (#24747)
Also fixes the issue where we say a package was successfully published before it wasn't. Bug in https://github.com/denoland/deno/pull/24714
Diffstat (limited to 'cli/tools/registry/tar.rs')
-rw-r--r--cli/tools/registry/tar.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tools/registry/tar.rs b/cli/tools/registry/tar.rs
index 27e416537..aca125e00 100644
--- a/cli/tools/registry/tar.rs
+++ b/cli/tools/registry/tar.rs
@@ -64,6 +64,7 @@ pub fn create_gzipped_tarball(
hash: format!("sha256-{:x}", sha2::Sha256::digest(&content)),
size: content.len(),
});
+ assert!(path_str.starts_with('/'));
tar
.add_file(format!(".{}", path_str), &content)
.with_context(|| {