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

Add "Set the /build/number back to 0" logic to bump-recipe #231

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

ForgottenProgramme
Copy link
Collaborator

@ForgottenProgramme ForgottenProgramme commented Nov 8, 2024

Description

This PR adds the logic to set the /build/number back to 0 when bump-recipe command is run without any flags:

crm bump-recipe <file.yaml>

TODO:

  • Write tests

@ForgottenProgramme ForgottenProgramme marked this pull request as ready for review November 8, 2024 14:05
@ForgottenProgramme ForgottenProgramme requested a review from a team as a code owner November 8, 2024 14:05
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Outdated Show resolved Hide resolved
tests/commands/test_bump_recipe.py Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
conda_recipe_manager/commands/bump_recipe.py Outdated Show resolved Hide resolved
if not isinstance(build_number, int):
print_err("Build number is not an integer.")
sys.exit(ExitCode.ILLEGAL_OPERATION)
required_patch_blob = get_required_patch_blob(recipe_parser, build_num)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be marked as Final?

@schuylermartin45 schuylermartin45 merged commit 4936ed0 into main Nov 13, 2024
13 checks passed
@schuylermartin45 schuylermartin45 deleted the revert-to-zero branch November 13, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set the /build/number back to 0
3 participants