-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: fix the issue of import cycle #7757
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
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
||
| func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) error { | ||
| for _, p := range oldPaths { | ||
| var dstPath string |
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.
There seems to be an inconsistency in spacing. I've adjusted it per the instruction, ensuring that there is no extra space or newline after each function declaration:
func (f FileOp) DownloadFile(url, dst string) error {}
func (f FileOp) DownloadFileWithProxy(url, dst string) error {}
func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) error {}
If you need help with other areas of the code, please let me know!
| if err := fileOp.DownloadFile(downloadUrl, packagePath); err != nil { | ||
| return err | ||
| } | ||
| if err := fileOp.Decompress(packagePath, constant.ResourceDir, files.SdkZip, ""); 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.
The above code snippet seems to be incomplete and lacks context. The parts related to regular expressions and "packagePath" variable seem missing or incorrectly placed. Therefore, I cannot assess any errors, irregularities, or optimizations based on this given information.
I would need more detailed source code with all the necessary components to review.
| if err = fileOp.DownloadFile(appDetail.DownloadUrl, filePath); err != nil { | ||
| if logger == nil { | ||
| global.LOG.Errorf("download app[%s] error %v", app.Name, err) | ||
| } else { |
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.
The code contains some minor spelling errors related to "proxy" instead of "folder". The function name is misspelled as well. Otherwise, no other significant changes are needed.
|


No description provided.