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(build): close pkg/apiclient/_.secondary.swagger.json #12942

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

testwill
Copy link
Contributor

Fixes #TODO

Motivation

Modifications

Verification

Signed-off-by: guangwu <guoguangwug@gmail.com>
@Joibel
Copy link
Member

Joibel commented Apr 16, 2024

LGTM, thanks for this.

@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Apr 16, 2024
@agilgur5 agilgur5 changed the title fix: close pkg/apiclient/_.secondary.swagger.json fix(build): close pkg/apiclient/_.secondary.swagger.json Apr 16, 2024
Copy link
Member

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Makes sense to me and is general good practice to close file descriptors. Did you experience some error with codgen around this? Since it isn't used after and should be GC'd shortly after as well

Looks like ReadFile and WriteFile don't return file descriptors, so it would only be valid for Create

@agilgur5 agilgur5 merged commit f0a867b into argoproj:main Apr 16, 2024
16 checks passed
@agilgur5 agilgur5 added this to the v3.5.x patches milestone Apr 19, 2024
agilgur5 pushed a commit that referenced this pull request Apr 19, 2024
Signed-off-by: guangwu <guoguangwug@gmail.com>
(cherry picked from commit f0a867b)
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 6, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants