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

refactor: remove #3008

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

refactor: remove #3008

wants to merge 1 commit into from

Conversation

phillebaba
Copy link
Member

Description

Refactors remove command.

Related Issue

Relates to #2969

Checklist before merging

Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 03f12d6
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/66ed9259f3ac9e0008135f4e

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 9.67742% with 140 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/internal/packager2/remove.go 0.00% 83 Missing ⚠️
src/pkg/cluster/zarf.go 0.00% 44 Missing ⚠️
src/cmd/package.go 0.00% 7 Missing ⚠️
src/internal/packager2/load.go 71.42% 3 Missing and 3 partials ⚠️
Files with missing lines Coverage Δ
src/internal/packager2/load.go 55.03% <71.42%> (+3.47%) ⬆️
src/cmd/package.go 0.00% <0.00%> (ø)
src/pkg/cluster/zarf.go 16.04% <0.00%> (-3.16%) ⬇️
src/internal/packager2/remove.go 0.00% <0.00%> (ø)

@phillebaba phillebaba force-pushed the refactor/remove branch 6 times, most recently from 371bc06 to 78ce3dc Compare September 20, 2024 13:41
err := actions.Run(ctx, comp.Actions.OnRemove.Defaults, comp.Actions.OnRemove.OnFailure, nil)
if err != nil {
// TODO: I think we should return an error if failure action fails. Does this break existing use cases?
return fmt.Errorf("unable to run the failure action: %w", err)
Copy link
Member Author

Choose a reason for hiding this comment

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

I want to start returning an error if on failure action fails. Before it was a log message. Does this break existing use cases?

@phillebaba phillebaba force-pushed the refactor/remove branch 3 times, most recently from 09b3d0b to d50a105 Compare September 20, 2024 15:10
Signed-off-by: Philip Laine <[email protected]>
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.

1 participant