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

Resolve tracked release name before writing to current release #88

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

larsevj
Copy link
Contributor

@larsevj larsevj commented Sep 23, 2024

This should ensure that the current release always points to a specific release, and is consistent with where the update function updates from.

Pre review checklist

  • Read through the code changes carefully after finishing work
  • Make sure tests pass locally (after every commit!)
  • Prepare changes in small commits for more convenient review (optional)
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Updated documentation
  • Ensured that unit tests are added for all new behavior (See
    Ground Rules),
    and changes to existing code have good test coverage.

Pre merge checklist

  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.

rp = path.resolve()
tracked_release = path.resolve()
if not (tracked_release / "root").is_dir():
tracked_release = Path(str(tracked_release) + rhel_version_suffix()).resolve()

Choose a reason for hiding this comment

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

Should perhaps test the outcome of this? We are sure this won't fail ?

Copy link

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

💯

- Raise warning or errors if release not found on disk
@larsevj larsevj merged commit acf3d75 into main Sep 23, 2024
6 checks passed
@larsevj larsevj deleted the fix_actual_name branch September 23, 2024 14:34
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.

2 participants