-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
use experimental go json v2 library #35392
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
Conversation
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
Signed-off-by: techknowlogick <matti@mdranta.net>
@junoberryferry I'm sorry for all the notifications. I've just resolved the linting errors on my phone. Thanks for this PR! |
Signed-off-by: techknowlogick <matti@mdranta.net>
Since it's not enabled by default. |
Signed-off-by: techknowlogick <matti@mdranta.net>
bcf9659
to
706cb44
Compare
e63d111
to
47cc820
Compare
46fa69e
to
d810180
Compare
Anything else to change? |
|
||
# By default use go's 1.25 experimental json v2 library when building | ||
# TODO: remove when no longer experimental | ||
export GOEXPERIMENT ?= jsonv2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi we do not use submake, so this export
is useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it is "useless"? Will go ...
inherit non-exported variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, all commands will see the variables like FOO ?= bar
, export
in a Makefile is only for sub-make:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you are right. My test was incorrect. I have always used the explicit form VAR=$(VAR) cmd
so far, which explicitly passes variables. I think it's the most clean way, especially because the Makefile handles a lot of other commands that don't accept GOEXPERIMENT
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that "export" is not the best approach, while it just works, so I just kept the original change from techknowlogick's 94d537c
details: https://pkg.go.dev/encoding/json/v2 --------- Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
details: https://pkg.go.dev/encoding/json/v2 --------- Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
details: https://pkg.go.dev/encoding/json/v2 --------- Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
details: https://pkg.go.dev/encoding/json/v2 --------- Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: fix: auto-expand and auto-scroll for actions logs (go-gitea#35570) (go-gitea#35583) [skip ci] Updated translations via Crowdin [skip ci] Updated translations via Crowdin Fix creating pull request failure when the target branch name is the same as some tag (go-gitea#35552) Use bundled version of spectral (go-gitea#35573) Add rebase push display wrong comments bug (go-gitea#35560) Address some CodeQL security concerns (go-gitea#35572) fix(webhook): prevent tag events from bypassing branch filters targets go-gitea#35449 (go-gitea#35567) Added button to copy file name in PR files (go-gitea#35509) Update JS and PY deps (go-gitea#35565) Enable a few more tsconfig options (go-gitea#35553) Bump github.com/wneessen/go-mail from 0.6.2 to 0.7.1 (go-gitea#35557) add more routes to the "expensive" list (go-gitea#35547) Drop json-iterator dependency (go-gitea#35544) Add proper error message if session provider can not be created (go-gitea#35520) use experimental go json v2 library (go-gitea#35392) Use global lock instead of status pool for cron lock (go-gitea#35507) Move some functions to gitrepo package (go-gitea#35503) Move GetDiverging functions to gitrepo (go-gitea#35524) [skip ci] Updated translations via Crowdin
details: https://pkg.go.dev/encoding/json/v2