chore(deps): bump github.com/open-policy-agent/opa from 0.65.0 to 0.67.1
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.65.0 to 0.67.1. - [Release notes](https://github.com/open-policy-agent/opa/releases) - [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-policy-agent/opa/compare/v0.65.0...v0.67.1) --- updated-dependencies: - dependency-name: github.com/open-policy-agent/opa dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
a381a3a0e8
commit
4d155475fe
+8
@@ -63,6 +63,14 @@ func TruncateFilePaths(maxIdealWidth, maxWidth int, path ...string) (map[string]
|
||||
return result, longestLocation
|
||||
}
|
||||
|
||||
func Truncate(str string, maxWidth int) string {
|
||||
if len(str) <= maxWidth {
|
||||
return str
|
||||
}
|
||||
|
||||
return str[:maxWidth-3] + "..."
|
||||
}
|
||||
|
||||
func getPathFromFirstSeparator(path string) string {
|
||||
s := filepath.Dir(path)
|
||||
s = strings.TrimPrefix(s, string(filepath.Separator))
|
||||
|
||||
Reference in New Issue
Block a user