export(local): split opt#3161
Conversation
c59a7a1 to
8e1272d
Compare
tonistiigi
left a comment
There was a problem hiding this comment.
I'm not sure if wrap is the best term for this. cc @jedevc for native speakers.
Should the build error if a file with the same name exists on multiple platforms?
|
I think Alternatively, we could have an option |
|
8e1272d to
1e93ded
Compare
1e93ded to
050b438
Compare
050b438 to
bde1ec4
Compare
There was a problem hiding this comment.
Could we also add this functionality to the tar exporter?
Ideally we should keep the options for these as close as possible. I think we should be able to put this opt into CreateFSOPts now that #3289 is merged.
There was a problem hiding this comment.
now that #3289 is merged.
Ah there's quite a lot of changes indeed, let me address that.
There was a problem hiding this comment.
Could we also add this functionality to the
tarexporter?
Don't think wrapping output for tar exporter would make sense 🤔
There was a problem hiding this comment.
Why doesn't this behavior make sense for tar ?
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Will do tar in follow-up if ok with you. I have some issues with MergeFS when platform-split is disabled. Seems we need Stat along FS. Or a fsutil.MergeDirFS method like the SubDirFS one could be better.
0a4b7f4 to
1662821
Compare
There was a problem hiding this comment.
Why doesn't this behavior make sense for tar ?
7b8b08a to
37187c2
Compare
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
37187c2 to
e6818cf
Compare
| visitedMu.Lock() | ||
| defer visitedMu.Unlock() | ||
| if vp, ok := visitedPath[p]; ok { | ||
| return errors.Errorf("cannot overwrite %s from %s with %s when split option is disabled", p, vp, k) |
There was a problem hiding this comment.
This error message could be more understandable to user. Eg. "file x exists in both platform1 and platform2 and would be lost by merging the platforms".
adds
splitlocal exporter option which can be used to split result in subfolders when multiple references are exported (defaulttrue).Signed-off-by: CrazyMax crazy-max@users.noreply.github.com