-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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(collections): move codecs to separate package and add int keys. #15001
Conversation
# Conflicts: # simapp/go.mod # x/upgrade/go.mod
tools/hubl/internal/load.go
Outdated
@@ -44,7 +44,7 @@ | |||
|
|||
func (c *ChainInfo) getCacheDir() (string, error) { | |||
cacheDir := path.Join(c.ConfigDir, "cache") | |||
return cacheDir, os.MkdirAll(cacheDir, 0755) | |||
return cacheDir, os.MkdirAll(cacheDir, 0o755) |
Check failure
Code scanning / gosec
Expect directory permissions to be 0750 or less
tools/hubl/internal/config.go
Outdated
@@ -49,12 +49,12 @@ | |||
return err | |||
} | |||
|
|||
if err := os.MkdirAll(configDir, 0755); err != nil { | |||
if err := os.MkdirAll(configDir, 0o755); err != nil { |
Check failure
Code scanning / gosec
Expect directory permissions to be 0750 or less
tools/hubl/internal/load.go
Outdated
@@ -133,7 +133,7 @@ | |||
return err | |||
} | |||
|
|||
err = os.WriteFile(appOptsFilename, bz, 0644) | |||
err = os.WriteFile(appOptsFilename, bz, 0o644) |
Check failure
Code scanning / gosec
Expect WriteFile permissions to be 0600 or less
tools/hubl/internal/load.go
Outdated
@@ -92,7 +92,7 @@ | |||
return err | |||
} | |||
|
|||
if err = os.WriteFile(fdsFilename, bz, 0644); err != nil { | |||
if err = os.WriteFile(fdsFilename, bz, 0o644); err != nil { |
Check failure
Code scanning / gosec
Expect WriteFile permissions to be 0600 or less
tools/hubl/internal/config.go
Outdated
return err | ||
} | ||
|
||
configPath := configFilename(configDir) | ||
if err := os.WriteFile(configPath, buf.Bytes(), 0644); err != nil { | ||
if err := os.WriteFile(configPath, buf.Bytes(), 0o644); err != nil { |
Check failure
Code scanning / gosec
Expect WriteFile permissions to be 0600 or less
# Conflicts: # x/evidence/go.mod # x/feegrant/go.mod # x/upgrade/go.mod
Description
Closes: #15002
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change