diff --git a/kv_test.go b/kv_test.go index 10c15f69..95873cee 100644 --- a/kv_test.go +++ b/kv_test.go @@ -78,7 +78,7 @@ func TestRunNWithKV(t *testing.T) { go func() { time.Sleep(50 * time.Millisecond) ops.SetKV("email", "test@example.com") - ops.SetKV("map", map[string]interface{}{ + ops.SetKV("map", map[string]any{ "str": "hello", "int": 123, }) diff --git a/operator.go b/operator.go index 5bd9c52f..2ab88b11 100644 --- a/operator.go +++ b/operator.go @@ -20,6 +20,7 @@ import ( "github.com/k1LoW/concgroup" "github.com/k1LoW/donegroup" + "github.com/k1LoW/maskedio" "github.com/k1LoW/runn/exprtrace" "github.com/k1LoW/runn/internal/deprecation" "github.com/k1LoW/stopw" @@ -83,6 +84,7 @@ type operator struct { runResult *RunResult dbg *dbg hasRunnerRunner bool + maskRule *maskedio.Rule mu sync.Mutex } @@ -465,6 +467,7 @@ func New(opts ...Option) (*operator, error) { capturers: bk.capturers, runResult: newRunResult(bk.desc, bk.labels, bk.path, bk.included, st), dbg: newDBG(bk.attach), + maskRule: st.maskRule(), } if op.debug {