-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Bootstrap key logic is too strict #36548
Copy link
Copy link
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Right now the bootstrap key is a hash of
CFG_RELEASE(and alsoCFG_EXTRA_FILENAMEif that's set).CFG_RELEASEcontains the channel label and the prerelease version. So today the master compiler will build with a compiler called1.12.0-beta.1and that's it.One place where this is problematic is when trying to build master from a local copy of the stable release. To do this you need to bootstrap beta, then bootstrap master. But today beta is
1.12.0-beta.3- and it can't bootstrap master because they keycheck fails. Furthermore, if you were to build beta with--release-channel=stableyou again create a mismatched bootstrap key.This is frustrating. The logic is too strict for no particular reason. The scheme for deriving the bootstrap key is quite trivial now, and nobody is abusing it. We may just want to turn on the bootstrap whenever the env var is set at all and not worry about this any more.
cc @alexcrichton this caused @glandium quite a bit of pain recently and I think we should solve it relatively soon.