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

remove deprecation warning for configure_file kwarg 'copy' #13250

Merged
merged 1 commit into from
May 24, 2024

Conversation

mcdurdin
Copy link
Contributor

configure_file kwarg copy runs at configure time, whereas fs.copyfile runs at build time. Both have use cases, so this undeprecates the configure_file version.

Fixes: #12792

@mcdurdin mcdurdin requested a review from jpakkane as a code owner May 24, 2024 01:39
@eli-schwartz
Copy link
Member

chore: an unpleasant but necessary task.

Hmm? Ok, granted I get where you're coming from by wanting to revert this change, but still :D

@mcdurdin
Copy link
Contributor Author

chore: an unpleasant but necessary task.

Hmm? Ok, granted I get where you're coming from by wanting to revert this change, but still :D

It's okay, it wasn't too unpleasant 😁

@eli-schwartz
Copy link
Member

Well, I still wonder if it's a good fit for the commit message?

Also the body paragraph should really be line wrapped.

@mcdurdin
Copy link
Contributor Author

I'll rewrite the commit message and remove the word 'chore' 😄, and I'll wrap the body (made this PR directly in GH so forgot to wrap... oops). Apart from that is the commit message fine?

@mcdurdin mcdurdin changed the title chore: remove deprecation warning for configure_file kwarg 'copy' remove deprecation warning for configure_file kwarg 'copy' May 24, 2024
`configure_file` kwarg `copy` runs at configure time, whereas
`fs.copyfile` runs at build time. Both have use cases, so this
undeprecates the `configure_file` version.

Fixes: mesonbuild#12792
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

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

I think this is a fair enough ask and overall looks good. A number of people have raised the same concern and the deprecation was... overly opinionated to begin with.

@eli-schwartz eli-schwartz merged commit 0c802d2 into mesonbuild:master May 24, 2024
33 of 35 checks passed
@mcdurdin mcdurdin deleted the patch-1 branch May 24, 2024 22:31
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.

Copy a file to the build directory at configure time without warnings
2 participants