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

Fix --purge / --purge-before-date dependency issue #532

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Conversation

chanchiwai-ray
Copy link
Contributor

@chanchiwai-ray chanchiwai-ray commented Aug 29, 2024

Currently, the dependency check only works if --purge is specified first. If the --purge is after --purge-before-date, the dependency check action still report missing require args --purge. For example, cou plan --purge-before-date 2000-1-1 --purge will fail.

This PR fixed that issue, making the order of --purge and --purge-before-date unimportant

Pjack
Pjack previously approved these changes Aug 29, 2024
gabrielcocenza
gabrielcocenza previously approved these changes Aug 30, 2024
Copy link
Contributor

@samuelallan72 samuelallan72 left a comment

Choose a reason for hiding this comment

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

Could you improve the commit message and PR description wording? It really confused me, because the wording and present tense suggested that the limitation applied to these changes. But in fact this change fixes that limitation.

cou/commands.py Outdated Show resolved Hide resolved
Currently, the dependency check only works if `--purge` is specified
first. If the `--purge` is after `--purge-before-date`, the dependency
check action still report missing require args `--purge`. For example,
`cou plan --purge-before-date 2000-1-1 --purge` will still failed.

This PR fixed that issue.
Copy link
Contributor

@samuelallan72 samuelallan72 left a comment

Choose a reason for hiding this comment

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

Thanks @chanchiwai-ray , this looks pretty good. I left some code lint comments though. :)

cou/commands.py Outdated Show resolved Hide resolved
cou/commands.py Outdated Show resolved Hide resolved
@chanchiwai-ray chanchiwai-ray merged commit a6739ea into main Sep 3, 2024
6 checks passed
@chanchiwai-ray chanchiwai-ray deleted the bug/no-ref branch September 3, 2024 01:42
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.

4 participants