Closed detly closed 1 year ago
It's probably because https://github.com/rust-lang/rust/pull/113341 has been merged. Maybe we don't need to do the copy here at all now.
On reflection, you'd only want to do this if you want the workflow itself to work for older versions of std. I don't think you do though, because the point is to check the size change at roughly the point at which the PR is merged, right? So I could just remove the copies.
Yes, we only care about current size, we can just use the fact the build system does the copying, now.
https://github.com/rust-lang/backtrace-rs/pull/542#issue-1789048235 mentions that after https://github.com/rust-lang/rust/pull/113341 merged, there can be 4 lines removed.
I have removed the copies altogether.
The copies should be removed after https://github.com/rust-lang/rust/pull/113341, indeed.
Oh nice. Thanks!
The CI workflow to check binary size started failing for me a few hours ago, and in this repo too now. The error happens when the bootstrapped files are copied over to be used for building a test binary;
cp
says:I have confirmed manually (in a Docker container) that this is because the files have the same inode ie. they are hardlinks. Using the
--remove-destination
flag allows the copy to proceed. Neither the-f
(force) nor-u
(update) flags will.(I was not able to figure out why they are suddenly hardlinks today, but I thought I'd share the change in case it saved some time.)