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(cli): Prevent stale command cache defaults #9169

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

Josh-Walker-GM
Copy link
Collaborator

Problem
#9150 highlights that there was a mistake in the cache loading logic.

Changes

  1. We merge the current cache state with the defaults - this will ensure that the defaults which are hard coded cannot be missing when the user updates versions.

Notes
I'm updating some of this plugin loading logic so expect a little churn in this code.

@Josh-Walker-GM Josh-Walker-GM added the release:fix This PR is a fix label Sep 13, 2023
@Josh-Walker-GM Josh-Walker-GM added this to the next-release-patch milestone Sep 13, 2023
@jtoar jtoar enabled auto-merge (squash) September 13, 2023 23:52
@jtoar jtoar disabled auto-merge September 14, 2023 00:08
@jtoar jtoar merged commit 16e1c13 into main Sep 14, 2023
27 checks passed
@jtoar jtoar deleted the jgmw-cli/command-cache-patch branch September 14, 2023 00:08
jtoar pushed a commit that referenced this pull request Sep 15, 2023
**Problem**
#9150 highlights that there was a mistake in the cache loading logic.

**Changes**
1. We merge the current cache state with the defaults - this will ensure
that the defaults which are hard coded cannot be missing when the user
updates versions.

**Notes**
I'm updating some of this plugin loading logic so expect a little churn
in this code.
@jtoar jtoar modified the milestones: next-release-patch, v6.2.2 Sep 15, 2023
jtoar pushed a commit that referenced this pull request Sep 15, 2023
**Problem**
#9150 highlights that there was a mistake in the cache loading logic.

**Changes**
1. We merge the current cache state with the defaults - this will ensure
that the defaults which are hard coded cannot be missing when the user
updates versions.

**Notes**
I'm updating some of this plugin loading logic so expect a little churn
in this code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants