fix(tvix/castore/import): symlink targets are Vec<u8>
These can be arbitrary bytes in theory. Some of our libraries might be more strict, or inconsistent w.r.t. their representation of path separators. Change-Id: I7981b74fc7d3dd79f5589cf2ef52ced7b71dd003 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11551 Tested-by: BuildkiteCI Reviewed-by: edef <edef@edef.eu>
This commit is contained in:
parent
ca64881cb3
commit
5e8cfcfcd6
3 changed files with 9 additions and 4 deletions
|
|
@ -114,7 +114,7 @@ where
|
|||
}
|
||||
IngestionEntry::Symlink { ref target, .. } => Node::Symlink(SymlinkNode {
|
||||
name,
|
||||
target: target.as_os_str().as_bytes().to_owned().into(),
|
||||
target: target.to_owned().into(),
|
||||
}),
|
||||
IngestionEntry::Regular {
|
||||
size,
|
||||
|
|
@ -209,7 +209,7 @@ pub enum IngestionEntry {
|
|||
},
|
||||
Symlink {
|
||||
path: PathBuf,
|
||||
target: PathBuf,
|
||||
target: Vec<u8>,
|
||||
},
|
||||
Dir {
|
||||
path: PathBuf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue