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 some rerun-if-env-changed lines from build.rs. (#576) #674

Merged
merged 3 commits into from
May 19, 2023

Conversation

sunfishcode
Copy link
Member

Now that we appear to have a known-working fix for #526, we can investigate relaxing the fix. If #526 reappears, we now have a known-working state we can quickly revert to.

Reports in #562 and #575 are that having rerun-if-env-changed=RUSTC and rerun-if-env-changed=RUSTC_WRAPPER are triggering spurious rebuilds in some situations, so remove these. In theory, cargo should already be aware of these environment variables. In practice, there were reports of build failures which had the appearance of using an older version of rustc with build.rs output from a newer version of rustc, and it wasn't clear what was happening. But, it's possible that #563 fixes the issue properly. So let's try removing these rerun-if-env-changed lines, and see if the problem resurfaces.

And, rerun-if-env-changed=TARGET is explicitly documented as being unnecessary here.

Now that we appear to have a known-working fix for #526, we can
investigate relaxing the fix. If #526 reappears, we now have a
known-working state we can quickly revert to.

Reports in #562 and #575 are that having rerun-if-env-changed=RUSTC
and rerun-if-env-changed=RUSTC_WRAPPER are triggering spurious rebuilds
in some situations, so remove these. In theory, cargo should already be
aware of these environment variables. In practice, there were reports of
build failures which had the appearance of using an older version of
rustc with build.rs output from a newer version of rustc, and it wasn't
clear what was happening. But, it's possible that #563 fixes the issue
properly. So let's try removing these rerun-if-env-changed lines, and
see if the problem resurfaces.

And, rerun-if-env-changed=TARGET is explicitly documented as being
unnecessary [here].

[here]: https://doc.rust-lang.org/cargo/reference/build-scripts.html
@sunfishcode
Copy link
Member Author

This is a backport of #576 to the 0.36 branch

sunfishcode and others added 2 commits May 19, 2023 14:23
Backport the MSRV fix from #638.
* ci: Upgrade from macos-10.15 to macos-11

The macos-10.15 CI image has been deprecated by Github since 2022-05-31, fully unsupported since
2022-08-30, and is slated to be fully removed by 2023-03-31 [1].

Update the relevant jobs to macOS 11, which is the oldest macOS version that still has a supported
image.

[1] https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/

* ci: Upgrade from ubuntu-18.04 to ubuntu-20.04

The ubuntus-18.04 CI image has been deprecated by Github since 2022-08-08 and will be fully
unsupported by 2023-04-01 [1].

Update the relevant jobs to Ubuntu 20.04, which is the oldest Ubuntu version that still has a
supported image.

[1] https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
@sunfishcode
Copy link
Member Author

And #552 and an MSRV fix from #638.

@sunfishcode sunfishcode merged commit 11ec72f into 0.36 May 19, 2023
51 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/0.36-rebuild branch May 19, 2023 22:45
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