-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add release-plz
for automatic releases.
#643
Conversation
@NobodyXu I notice you always close then reopen the release PRs on cc-rs, e.g. rust-lang/cc-rs#1162. Any reason for this? |
That's because github does not run CI/pipeline on PRs created by bot, it'd require you to re-open it. |
Thanks, interesting. Looks like maybe that can be be configured https://github.com/orgs/community/discussions/55906#discussioncomment-9303330 |
Hm, one other thing I'm not sure about is whether this will want to use If it tries to use |
628193c
to
a307cad
Compare
Can you add a release-plz.toml to disable changelog generation and semver checks? This is an internal crate that should only be used as part of the rustc sysroot, not by users. |
This is what `cc-rs` is using and should create a release PR whenever a change to `master` is made. If the branch is merged, it should publish the new version. Includes configuration to disable semver checks and not keep a changelog since this is an implementation detail.
Sure, added. |
LGTM @Mark-Simulacrum Could you help us set up this repo for release-plz like you did for rust-lang/cc-rs? |
Given this, is there a reason we're publishing it to crates.io at all? I guess this feels like maybe it should be a submodule/subtree of rust-lang/rust? re:token, see https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/compiler-builtins.20crates.2Eio, we'll need to wait on that before access can be shifted |
In any case, a token now exists in the repository secrets, should be the same as cc. |
There are at least a handful of reverse dependencies https://crates.io/crates/compiler_builtins/reverse_dependencies. At least a few of those are because of We also do say suggest using it as a dependency in the readme but only via git with no tag/rev. Maybe it would be better to suggest using the crates.io package but pinning to a specific version. |
I think that long-term we're probably better off turning this into a submodule/subtree. I'm not sure how much work this work involve in bootstrap/cargo. |
Unfortunately this seems to fail: https://github.com/rust-lang/compiler-builtins/actions/runs/10134695821/job/28021228181 |
Ah just saw that, must be the libm cargo.toml. I'll check if there is a way to allow dirty. |
I think we need to explicitly allow a dirty working directory when publishing. |
This should resolve the issue in <rust-lang#643 (comment)>
Sent #647 |
This is what
cc-rs
is using and should create a release PR whenever a change tomaster
is made. If the branch is merged, it should publish the new version.This will need the
CARGO_REGISTRY_TOKEN
github secret set, but I think omitting it for now might allow for a dry run.