Skip to content
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

fix: scp files #4041

Merged
merged 4 commits into from
Oct 8, 2023
Merged

fix: scp files #4041

merged 4 commits into from
Oct 8, 2023

Conversation

ghostloda
Copy link
Collaborator

fix scp files

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Oct 7, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 976
✅ Successful 403
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 572
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

All modified lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@pull-request-size pull-request-size bot added size/S and removed size/XS labels Oct 8, 2023
@pull-request-size pull-request-size bot added size/XS and removed size/S labels Oct 8, 2023
@ghostloda ghostloda requested a review from fengxsong October 8, 2023 02:40
@cuisongliu cuisongliu added this to the v4.4 milestone Oct 8, 2023
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Oct 8, 2023
pkg/ssh/scp.go Outdated
if err != nil {
return fmt.Errorf("failed to create: %v", err)
destTmp := dest + ".tmp"
copyToTmp := func(tmpName string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if err = func() error {
        ......
}(); err!=nil {

}

using anonymous function is just fine.

@cuisongliu cuisongliu merged commit 541bf7c into labring:main Oct 8, 2023
@sealos-ci-robot
Copy link
Member

/cherry-pick release-v4.4

@sealos-ci-robot
Copy link
Member

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/labring/sealos/actions/runs/6446037885

sealos-ci-robot pushed a commit that referenced this pull request Oct 8, 2023
* fix: scp files

* fix: scp files

* fix: scp files

* fix: scp files
cuisongliu pushed a commit that referenced this pull request Oct 8, 2023
* fix: scp files

* fix: scp files

* fix: scp files

* fix: scp files

Co-authored-by: 榴莲榴莲 <[email protected]>
@ghostloda ghostloda deleted the fix_scp_files branch October 8, 2023 06:36
sealos-ci-robot added a commit that referenced this pull request Oct 8, 2023
* fix: scp files

* fix: scp files

* fix: scp files

* fix: scp files

Co-authored-by: 榴莲榴莲 <[email protected]>
return fmt.Errorf("failed to Chmod dst: %v", err)
destTmp := dest + ".tmp"
if err = func(tmpName string) error {
dstfp, err := client.Create(tmpName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tmpName文件 已经存在了的话呢?

cuisongliu pushed a commit that referenced this pull request Oct 8, 2023
* fix: scp files

* fix: scp files

* fix: scp files

* fix: scp files

Co-authored-by: 榴莲榴莲 <[email protected]>
bxy4543 pushed a commit to bxy4543/sealos that referenced this pull request Oct 13, 2023
* fix: scp files

* fix: scp files

* fix: scp files

* fix: scp files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants