-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Use --release-channel=stable by default on releases #28322
Comments
I have no objections to this idea. Please cc me [if|when] a PR adds this feature, since the change may necessitate some minor changes to avoid changing the buildslaves' behavior. |
I think I'm ok with this, although there's also something to be said for distributing the same source we are building from and this will require flipping a bit somewhere (ofc we're not building from the source tarball at all and basically nobody has any idea whether it even works :). Off-hand I don't have a smart way to do this. I guess we would need to add some additional metadata to the source directory for the configure script to scrape, or we could frob the configure script with sed when packaging the source tarball. |
We could perhaps special case this and say "if .git isn't present we're a source tarball" and just piggy back on that logic. |
@alexcrichton Yeah, we could. I'm wary though that those may be two distinct cases. |
Yeah, I feel vaguely the same re: repeatable builds and such, but @alexcrichton 's suggestion seems reasonable, but possibly footgun-ny... |
Maybe just check if .git exists?
|
OK, let's just piggy-back on the .git check. |
> Release tarballs should be compilable with just basic ./configure ; > make ; sudo make install without having to pass special flags to > configure. This is the case of the --release-channel option, that must > be changed in the releases. This commit detects the presence of .git, as it happens on other parts of `configure` to assume it is a tarball. Then it changes the default value stored, before parsing the arguments, while still allowing it to be overriden before any action verifying the flag is done. Closes rust-lang#28322
…arball, r=brson Use --release-channel=stable by default on releases > Release tarballs should be compilable with just basic ./configure ; > make ; sudo make install without having to pass special flags to > configure. This is the case of the --release-channel option, that must > be changed in the releases. This commit detects the presence of .git, as it happens on other parts of `configure` to assume it is a tarball. Then it changes the default value stored, before parsing the arguments, while still allowing it to be overriden before any action verifying the flag is done. Closes #28322
Release tarballs should be compilable with just basic
./configure ; make ; sudo make install
without having to pass special flags to configure. This is the case of the--release-channel
option, that must be changed in the releases.The text was updated successfully, but these errors were encountered: