saltstack / saltstack/salt

Cannot remove a hold package

Open
#44,912 21 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug severity-medium
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Previously, I had a state pkg.installed which had hold: True to mark it as hold.

Now I want to create a state pkg.removed to remove this installed package, but there is no option to override the hold mark.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Salt's pkg.installed and pkg.removed states and the hold flag, but no files or tests. Start by locating the package-state implementation and its hold handling; done means a held package can be removed through pkg.removed with an explicit way to override the hold, covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.