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

feat: support to write string to file #339

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

LinuxSuRen
Copy link
Owner

No description provided.

@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Merging #339 (f343c28) into master (4211b93) will increase coverage by 0.09%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master     #339      +/-   ##
==========================================
+ Coverage   59.10%   59.20%   +0.09%     
==========================================
  Files          61       61              
  Lines        3137     3152      +15     
==========================================
+ Hits         1854     1866      +12     
- Misses       1190     1192       +2     
- Partials       93       94       +1     
Flag Coverage Δ
unittests 59.20% <85.71%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/os/generic_installer.go 60.46% <85.71%> (+1.86%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


parent := path.Dir(w.File)
if err = os.MkdirAll(parent, 0644); err == nil {
err = os.WriteFile(w.File, []byte(w.Content), fs.FileMode(mod))

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types

Incorrect conversion of an integer with architecture-dependent bit size from [strconv.Atoi](1) to a lower bit size type uint32 without an upper bound check.
@LinuxSuRen LinuxSuRen merged commit f823723 into master Feb 3, 2023
@LinuxSuRen LinuxSuRen deleted the feat/write-to-file branch February 3, 2023 07:46
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.

None yet

1 participant