diff options
Diffstat (limited to 'cli/tools/registry/tar.rs')
-rw-r--r-- | cli/tools/registry/tar.rs | 1 |
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(|| { |