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

rustc: allow building/git-bisecting without tarballs #266971

Merged
merged 3 commits into from Nov 12, 2023
Merged

rustc: allow building/git-bisecting without tarballs #266971

merged 3 commits into from Nov 12, 2023

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2023

Description of changes

This commit adds the machinery required to get our rustc.nix to work using upstream's git repository, directly, without them waving dead chickens over it and performing whatever other occult rituals are involved in creating a release tarball.

This PR also adds to the manual an example of how this functionality can be used to run a git bisect on rustc in order to find the rustc commit that broke some downstream code within nixpkgs.

⚠️ No chickens, live or dead, were harmed in the creation of this commit. ⚠️

chicken

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ghost ghost changed the title rustc: allow building/git-bisecting from source without tarballs rustc: allow building/git-bisecting without tarballs Nov 12, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Nov 12, 2023
Adam Joseph added 2 commits November 11, 2023 22:12
This commit adds the machinery required to get our `rustc.nix` to
work using upstream's git repository, directly, without them waving
dead chickens over it and performing whatever other occult rituals
are involved in creating a release tarball.

No chickens, live or dead, were harmed in the creation of this
commit.
This commits adds to the manual a tutorial showing how to
troubleshoot breakage caused by a rustc upgrade in *downstream*
packages.
@ghost ghost marked this pull request as ready for review November 12, 2023 08:24
@ghost ghost requested review from zowoq, winterqt, figsoda and Mic92 as code owners November 12, 2023 08:24
@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 12, 2023
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
@delroth delroth removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 12, 2023
@Ericson2314 Ericson2314 merged commit 060c273 into NixOS:master Nov 12, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: rust 8.has: documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants