Skip to content

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

Merged
Ericson2314 merged 3 commits intomasterfrom
unknown repository
Nov 12, 2023
Merged

rustc: allow building/git-bisecting without tarballs#266971
Ericson2314 merged 3 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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.

@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label Nov 12, 2023
@github-actions github-actions bot added the 8.has: documentation This PR adds or changes documentation label Nov 12, 2023
@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 Mic92, figsoda, winterqt and zowoq as code owners November 12, 2023 08:24
@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one 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 person. label Nov 12, 2023
@Ericson2314 Ericson2314 merged commit 060c273 into NixOS:master Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 8.has: documentation This PR adds or changes 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