Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: run os.exit on persistent post run only when executor has non-zero exitcode#4138

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kraashen wants to merge1 commit intogolangci:master
base:master
Choose a base branch
Loading
fromkraashen:bugfix/persistent-post-run-early-exit

Conversation

@kraashen
Copy link

@kraashenkraashen commentedOct 18, 2023
edited
Loading

As described in issue#4137 and linked reproduction sample, when running golangci-lint in a Magefile target in a serial flow with other targets withSerialCtxDeps, the serially executed target pipeline is exited prematurely due toos.exit.

Not sure if this PR is applicable for the context in thePersistentPostRunE handler that is passed to Cobra, but this PR attempts to by implementing a check where:

  • os.Exit is run only when exit code of the executor was non-zero
  • returnnil otherwise

Fixes#4137

@boring-cyborg
Copy link

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commentedOct 18, 2023
edited
Loading

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign ourContributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let usrecheck it.

@ldezldez self-requested a reviewOctober 18, 2023 13:22
@ldezldez added area: CLIRelated to CLI blockedNeed's direct action from maintainer labelsOct 18, 2023
@kraashenkraashenforce-pushed thebugfix/persistent-post-run-early-exit branch from34382d0 to23c16faCompareOctober 19, 2023 16:41
@kraashenkraashenforce-pushed thebugfix/persistent-post-run-early-exit branch from23c16fa toe861ab3CompareOctober 23, 2023 13:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ldezldezAwaiting requested review from ldez

Assignees

No one assigned

Labels

area: CLIRelated to CLIblockedNeed's direct action from maintainer

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Persistent post run exits early when run is successful in Magefile targets

3 participants

@kraashen@CLAassistant@ldez

[8]ページ先頭

©2009-2025 Movatter.jp