Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use temp file on same device with mcp file edit#20477

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 2 commits intomainfromasher/mcp-edit-file
Oct 29, 2025

Conversation

@code-asher
Copy link
Member

Otherwise you can get errors like "invalid cross-device link".

Otherwise you can get errors like "invalid cross-device link".
@code-ashercode-asher marked this pull request as ready for reviewOctober 27, 2025 12:14
transforms[i]=replace.String(edit.Search,edit.Replace)
}

tmpfile,err:=afero.TempFile(a.filesystem,"",filepath.Base(path))
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't we pass thefilepath.Dir(path) here instead of the empty string and get almost the same behavior?

https://github.com/spf13/afero/blob/399bb34ad9fd8a252ad1d8bfaef96279b66dc774/ioutil.go#L180-L207

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Holy smokes how did I miss that, thank you! Fixed.

@code-ashercode-asher merged commit643fe38 intomainOct 29, 2025
30 checks passed
@code-ashercode-asher deleted the asher/mcp-edit-file branchOctober 29, 2025 20:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@ThomasK33ThomasK33ThomasK33 approved these changes

Assignees

@code-ashercode-asher

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@code-asher@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp