build(deps): bump github.com/open-policy-agent/opa from 1.12.3 to 1.13.1
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.12.3 to 1.13.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/v1.12.3...v1.13.1) --- updated-dependencies: - dependency-name: github.com/open-policy-agent/opa dependency-version: 1.13.1 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
4e9eb596f0
commit
5daeada697
+4
-4
@@ -8,10 +8,10 @@ import (
|
||||
//
|
||||
// Typical Arena lifecycle:
|
||||
//
|
||||
// 1) Construct Values via the Arena and Value.Set* calls.
|
||||
// 2) Marshal the constructed Values with Value.MarshalTo call.
|
||||
// 3) Reset all the constructed Values at once by Arena.Reset call.
|
||||
// 4) Go to 1 and re-use the Arena.
|
||||
// 1. Construct Values via the Arena and Value.Set* calls.
|
||||
// 2. Marshal the constructed Values with Value.MarshalTo call.
|
||||
// 3. Reset all the constructed Values at once by Arena.Reset call.
|
||||
// 4. Go to 1 and re-use the Arena.
|
||||
//
|
||||
// It is unsafe calling Arena methods from concurrent goroutines.
|
||||
// Use per-goroutine Arenas or ArenaPool instead.
|
||||
|
||||
-1
@@ -4,6 +4,5 @@ Package fastjson provides fast JSON parsing.
|
||||
Arbitrary JSON may be parsed by fastjson without the need for creating structs
|
||||
or for generating go code. Just parse JSON and get the required fields with
|
||||
Get* functions.
|
||||
|
||||
*/
|
||||
package fastjson
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
//go:build gofuzz
|
||||
// +build gofuzz
|
||||
|
||||
package fastjson
|
||||
|
||||
+1
@@ -48,5 +48,6 @@ func (ap *ArenaPool) Get() *Arena {
|
||||
//
|
||||
// a and objects created by a cannot be used after a is put into ap.
|
||||
func (ap *ArenaPool) Put(a *Arena) {
|
||||
a.Reset()
|
||||
ap.pool.Put(a)
|
||||
}
|
||||
|
||||
+3
@@ -106,5 +106,8 @@ func (v *Value) SetArrayItem(idx int, value *Value) {
|
||||
for idx >= len(v.a) {
|
||||
v.a = append(v.a, valueNull)
|
||||
}
|
||||
if value == nil {
|
||||
value = valueNull
|
||||
}
|
||||
v.a[idx] = value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user