bilibili / bilibili/gengine

ruleBuilder 构建后 传入进方法的map 添加的key value 添加不进去

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.1k
Forks
281
PR merge metrics
No merged PRs in 30d

Description

image
image
我吧gloabalMap 作为参数传进方法,在里面新加一个key value ,期待最外层的gloabalMap也会加这样一个key value但是当我用了你们框架的dc := dataContext.NewDataContext()
ruleBuilder := builder.NewRuleBuilder(dc)
发现key value没加进去
image
当我把rulebuilder注释
image
key value就添加进去了
image
这是debug模式下的 不知道是我goland原因还是什么?我直接取值能取出来的

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported map mutation with the code shown in the screenshots, starting at dataContext.NewDataContext() and builder.NewRuleBuilder(dc). Compare the direct call with the RuleBuilder path and identify the relevant map-handling entry point; done means a focused regression test demonstrates that the expected key/value is visible in the outer globalMap.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.