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

renameio: implement in terms of github.com/google/renameio/v2 #212

Closed
wants to merge 1 commit into from

Conversation

rogpeppe
Copy link
Owner

No description provided.

@rogpeppe rogpeppe requested a review from mvdan March 27, 2023 16:47
Copy link
Collaborator

@mvdan mvdan left a comment

Choose a reason for hiding this comment

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

I'm just reminded that the public renameio does not support Windows by design; see https://pkg.go.dev/github.com/google/renameio/v2#readme-windows-support.

There is https://pkg.go.dev/github.com/google/renameio/v2@v2.0.0/maybe#WriteFile which is best-effort, falling back to ioutil.WriteFile on Windows. We might want to use that for WriteFile, to not break Windows, but then I'm not sure what we should do with WriteToFile.

Maybe we don't forward this package due to the Windows awkwardness, but only deprecate it?

@rogpeppe
Copy link
Owner Author

Maybe we don't forward this package due to the Windows awkwardness, but only deprecate it?

Yeah, not a bad idea. I'll abandon this PR.

@rogpeppe rogpeppe closed this Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants