-
Notifications
You must be signed in to change notification settings - Fork 352
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
Implement lakectl local commit #6369
Conversation
🎊 PR Preview ce4704d has been successfully built and deployed to https://treeverse-lakeFS-preview-pr-6369.surge.sh 🕐 Build time: 0.024s 🤖 By surge-preview |
ec99d02
to
880f7ad
Compare
880f7ad
to
db048e8
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.
LGTM
if resp.StatusCode() != http.StatusNoContent { | ||
return fmt.Errorf("could not delete object: HTTP %d: %w", resp.StatusCode(), helpers.ErrRequestFailed) | ||
} |
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.
if resp.StatusCode() != http.StatusNoContent { | |
return fmt.Errorf("could not delete object: HTTP %d: %w", resp.StatusCode(), helpers.ErrRequestFailed) | |
} | |
if resp.StatusCode() != http.StatusNoContent { | |
b.Error() | |
return fmt.Errorf("could not delete object: HTTP %d: %w", resp.StatusCode(), helpers.ErrRequestFailed) | |
} |
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.
Found a better solution
err = os.Remove(name) | ||
if err != nil { | ||
|
||
} |
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.
err = os.Remove(name) | |
if err != nil { | |
} | |
_ = os.Remove(name) |
Closes #6306
Change Description
Background
Implement lakectl local command to commit changes from local directory to a linked lakeFS branch
New Feature
Part of task #6239
Testing Details
Unit testing for tools, lakectl tests will be added for esti upon feature completion. SyncManager will be tested as part of the command (was tested manually)
Breaking Change?
No