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(controller): Work-around Golang flaw. Fixes #5192 #5230

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Feb 26, 2021

Fixes #5192

@alexec alexec changed the title fix(controller): Work-around Golang bug. Fixes #5192 fix(controller): Work-around Golang flaw. Fixes #5192 Feb 26, 2021
@alexec alexec marked this pull request as ready for review February 26, 2021 23:56
util/json/fix.go Outdated Show resolved Hide resolved
@alexec
Copy link
Contributor Author

alexec commented Mar 1, 2021

@simster7 any chance of a code review on this? I'd like to backport it to v2.12 and to v3.0.

}
return string(jsonBytes)
return jsonutil.Fix(string(x))
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion:
Can it be the common wrapper function json.Marshal which contains the above definition? So, the developer will call the wrapper function instead of call json.Marshal and jsonutil.fix.

@alexec alexec merged commit c4bcabd into argoproj:master Mar 2, 2021
@alexec alexec deleted the flaw branch March 2, 2021 00:35
This was referenced Mar 8, 2021
simster7 pushed a commit that referenced this pull request Mar 8, 2021
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
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.

Command being replaced into the workflow: Golang fundamental flaw bug - again
4 participants