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

Package specific releases #652

Merged
merged 5 commits into from
Oct 5, 2023

Conversation

06chaynes
Copy link
Contributor

This adds a new optional field to the artifacts config package_specific_releases which will default to false. When false things will work as they currently do, when true an additional check is enabled in Context::with_releases that will skip the release should the version tag not contain the project name.

This also modifies Context::with_releases to require a reference to ProjectConfig as an argument in order to perform the check against the project name.

@06chaynes
Copy link
Contributor Author

06chaynes commented Oct 3, 2023

Not sure why it's showing that entire file as changed atm, will review.

Edit: After adding the changes to src/data/mod.rs cargo fmt wants to do this apparently, at least when I run it.

Edit 2: Not really sure why that was happening but I redid the changes and now its happy without needing to change the entire file, so yay!

@06chaynes 06chaynes changed the title WIP: Package specific releases Package specific releases Oct 4, 2023
@@ -38,6 +38,7 @@ enum ArtifactSystem {
pub struct ArtifactsConfig {
pub auto: bool,
pub cargo_dist: bool,
pub package_specific_releases: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is a good addition, I would change the name, maybe to match_package_names (seems more immediately obvious to me what it does that way). Also adding it to the docs reference page would be nice, but no worries, I can also do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure about the naming either, I'll get those updates made a bit later today. Thanks for the quick response!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just pushed these changes, also added a doc entry but feel free to tweaks as needed!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually ill fix that clippy

Copy link
Contributor

@shadows-withal shadows-withal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thanks!

@shadows-withal shadows-withal merged commit da1dcee into axodotdev:main Oct 5, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants