Skip to content

fix(BRE2-800): Fix bug where deregister fails to delete etc data#312

Merged
drewmalin merged 2 commits intomainfrom
dm/deregisterbug
Mar 5, 2026
Merged

fix(BRE2-800): Fix bug where deregister fails to delete etc data#312
drewmalin merged 2 commits intomainfrom
dm/deregisterbug

Conversation

@drewmalin
Copy link
Contributor

No description provided.

@drewmalin drewmalin requested a review from a team as a code owner March 5, 2026 16:51
Copilot AI review requested due to automatic review settings March 5, 2026 16:51
if err == nil {
return nil
}
if !os.IsPermission(err) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the implementation here, this requires that err is exactly the "ErrPermission" error in the os package (which it is not, as the above "DeleteFile" call performs the typical "WrapAndTrace".

From the doc on this function:

// This function predates [errors.Is]. It only supports errors returned by
// the os package. New code should use errors.Is(err, fs.ErrPermission).

Validated that deregister functions again.

Copy link
Contributor

Choose a reason for hiding this comment

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

sigh

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@drewmalin drewmalin merged commit 78b382a into main Mar 5, 2026
9 checks passed
@drewmalin drewmalin deleted the dm/deregisterbug branch March 5, 2026 17:28
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.

3 participants