chocolatey / chocolatey/choco

Refactor - Remove regex replacement of `\chocolatey\chocolatey\` in choco v1.0.0

Open
#2,376 1 comment 0 reactions 0 assignees View on GitHub
0 - Backlog NO RELEASE NOTES WorkItem
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

## Description

Remove the regex in some PowerShell functions that replaces `\chocolatey\chocolatey\` with `\chocolatey\` when we release v1.0.0

## Why Is It Needed

The replacement is due to a [bug](https://github.com/chocolatey/choco/commit/ae2e8571ab9440e715effba9b34c25aceac34dac) introduced around 0.9.10. This should not be needed anymore.

## Related Issues and Tickets

* [GitLab discussion](https://gitlab.com/chocolatey/collaborators/choco-licensed/-/merge_requests/128#note_681515143)
* [GitLab issue for Chocolatey.Extension](https://gitlab.com/chocolatey/collaborators/choco-licensed/-/issues/573)

## Acceptance Tests

* Remove regex replacement
* Verify everything continues to function.

## Done Checklist

* [ ] Documentation has been updated.
* [ ] Automated tests have been added to cover this bug.
* [ ] Manual tests have been added to cover this bug.

Contributor guide

Open the contributing guide

Research direction

Find the PowerShell functions that replace `\chocolatey\chocolatey\` and review the linked bug and related discussions for the original context. Remove the obsolete replacement, then run the relevant existing checks and verify Chocolatey continues to function without the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.