-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export(local): split opt #3161
export(local): split opt #3161
Conversation
c59a7a1
to
8e1272d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also add this functionality to the
tar
exporter?
Don't think wrapping output for tar
exporter would make sense 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
split
local 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