mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
* MM-68149: upgrade to Go 1.26.2 Update go directive in go.mod and .go-version. * MM-68149: replace pointer helpers with Go 1.26 new() Go 1.26 extends the built-in new() to accept an initial value expression, making typed-pointer helpers like model.NewPointer(x), bToP(x), and boolPtr(x) redundant. Replace every call site with new(x) and remove the now-unused helper functions and their //go:fix inline directives. * MM-68149: apply go fix for reflect API and format-string changes - reflect.Ptr → reflect.Pointer (renamed in Go 1.18, deprecated alias removed in 1.26) - reflect range-over-struct: for i := 0; i < t.NumField(); i++ → for field := range t.Fields() and the equivalent for Methods() and interface types - Fix format-string concatenation and variadic-arg mismatches flagged by go vet * MM-68149: update JPEG fixtures and test infrastructure for Go 1.26 encoder Go 1.26 ships a new image/jpeg encoder that produces slightly different output. Regenerate all JPEG fixture files and switch the comparison helpers from byte-equality to pixel-level comparison with a small per-channel tolerance, so minor encoder drift across patch versions is handled automatically. Add -update-fixtures flag to make it easy to regenerate fixtures after future major Go upgrades. Document the update procedure in tests/README.md. * MM-68149: CI check that go fix ./... produces no changes * Fix real bugs flagged by CodeRabbit review - group.go: set newGroup.MemberCount not group.MemberCount (member count was populated on the wrong variable and lost before publish/return) - file_test.go: guard compareImage(GetFilePreview) on the preview slice length, not the thumbnail slice length (copy-paste error) - config_test.go: remove duplicate MinimumLength assignment * fixup! Fix real bugs flagged by CodeRabbit review |
||
|---|---|---|
| .. | ||
| manual.test_configuration_will_be_saved_hook | ||
| manual.test_http_hijack_plugin | ||
| manual.test_http_upgrade_websocket_plugin | ||
| manual.test_load_configuration_defaults_plugin | ||
| manual.test_load_configuration_plugin | ||
| manual.test_serve_metrics_plugin | ||
| manual.test_websocket_remote_address | ||
| manual.test_websocket_session | ||
| test_bots_plugin | ||
| test_call_log_api_plugin | ||
| test_db_driver | ||
| test_get_bundle_path_plugin | ||
| test_get_channels_for_team_for_user_plugin | ||
| test_get_direct_channel_plugin | ||
| test_get_plugin_status_plugin | ||
| test_get_profile_image_plugin | ||
| test_kv | ||
| test_member_channels_plugin | ||
| test_members_plugin | ||
| test_search_channels_plugin | ||
| test_search_posts_in_team_plugin | ||
| test_search_teams_plugin | ||
| test_send_mail_plugin | ||
| test_sessions_plugin | ||
| test_set_profile_image_plugin | ||
| test_update_user_active_plugin | ||
| test_update_user_auth_plugin | ||
| test_update_user_roles_plugin | ||
| test_update_user_status_plugin | ||
| basic_config.go | ||