* Upgrade Go to 1.24.3

Updates the following files:
- server/.go-version: 1.23.9 → 1.24.3
- server/build/Dockerfile.buildenv: golang:1.23.9-bullseye → golang:1.24.3-bullseye
- server/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3
- server/public/go.mod: go 1.23.0 → go 1.24.3, toolchain go1.23.9 → go1.24.3

Also fixes non-constant format string errors introduced by Go 1.24.3's stricter format string checking:
- Added response() helper function in slashcommands/util.go for simple string responses
- Removed unused responsef() function from slashcommands/util.go
- Replaced responsef() with response() for translated strings that don't need formatting
- Fixed fmt.Errorf and fmt.Fprintf calls to use proper format verbs instead of string concatenation
- Updated marketplace buildURL to handle format strings conditionally

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update generated mocks for Go 1.24.3

Regenerated mocks using mockery v2.53.4 to ensure compatibility with Go 1.24.3.
This addresses mock generation failures that occurred with the Go upgrade.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update to bookworm and fix non-existent sha

Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>

* fix non-constant format string

---------

Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Stavros Foteinopoulos <stafot@gmail.com>
Этот коммит содержится в:
Jesse Hallam
2025-06-10 15:04:57 -03:00
коммит произвёл GitHub
родитель d01d6501f7
Коммит e6d8bf5835
110 изменённых файлов: 422 добавлений и 425 удалений

Просмотреть файл

@@ -1,4 +1,4 @@
// Code generated by mockery v2.42.2. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
// Regenerate this file using `make plugin-mocks`.
@@ -737,7 +737,7 @@ func (_m *API) DeleteGroup(groupID string) (*model.Group, *model.AppError) {
return r0, r1
}
// DeleteGroupConstrainedMemberships provides a mock function with given fields:
// DeleteGroupConstrainedMemberships provides a mock function with no fields
func (_m *API) DeleteGroupConstrainedMemberships() *model.AppError {
ret := _m.Called()
@@ -1123,7 +1123,7 @@ func (_m *API) GetBots(options *model.BotGetOptions) ([]*model.Bot, *model.AppEr
return r0, r1
}
// GetBundlePath provides a mock function with given fields:
// GetBundlePath provides a mock function with no fields
func (_m *API) GetBundlePath() (string, error) {
ret := _m.Called()
@@ -1471,7 +1471,7 @@ func (_m *API) GetChannelsForTeamForUser(teamID string, userID string, includeDe
return r0, r1
}
// GetCloudLimits provides a mock function with given fields:
// GetCloudLimits provides a mock function with no fields
func (_m *API) GetCloudLimits() (*model.ProductLimits, error) {
ret := _m.Called()
@@ -1531,7 +1531,7 @@ func (_m *API) GetCommand(commandID string) (*model.Command, error) {
return r0, r1
}
// GetConfig provides a mock function with given fields:
// GetConfig provides a mock function with no fields
func (_m *API) GetConfig() *model.Config {
ret := _m.Called()
@@ -1551,7 +1551,7 @@ func (_m *API) GetConfig() *model.Config {
return r0
}
// GetDiagnosticId provides a mock function with given fields:
// GetDiagnosticId provides a mock function with no fields
func (_m *API) GetDiagnosticId() string {
ret := _m.Called()
@@ -2214,7 +2214,7 @@ func (_m *API) GetLDAPUserAttributes(userID string, attributes []string) (map[st
return r0, r1
}
// GetLicense provides a mock function with given fields:
// GetLicense provides a mock function with no fields
func (_m *API) GetLicense() *model.License {
ret := _m.Called()
@@ -2266,7 +2266,7 @@ func (_m *API) GetOAuthApp(appID string) (*model.OAuthApp, *model.AppError) {
return r0, r1
}
// GetPluginConfig provides a mock function with given fields:
// GetPluginConfig provides a mock function with no fields
func (_m *API) GetPluginConfig() map[string]interface{} {
ret := _m.Called()
@@ -2286,7 +2286,7 @@ func (_m *API) GetPluginConfig() map[string]interface{} {
return r0
}
// GetPluginID provides a mock function with given fields:
// GetPluginID provides a mock function with no fields
func (_m *API) GetPluginID() string {
ret := _m.Called()
@@ -2336,7 +2336,7 @@ func (_m *API) GetPluginStatus(id string) (*model.PluginStatus, *model.AppError)
return r0, r1
}
// GetPlugins provides a mock function with given fields:
// GetPlugins provides a mock function with no fields
func (_m *API) GetPlugins() ([]*model.Manifest, *model.AppError) {
ret := _m.Called()
@@ -2718,7 +2718,7 @@ func (_m *API) GetReactions(postId string) ([]*model.Reaction, *model.AppError)
return r0, r1
}
// GetServerVersion provides a mock function with given fields:
// GetServerVersion provides a mock function with no fields
func (_m *API) GetServerVersion() string {
ret := _m.Called()
@@ -2768,7 +2768,7 @@ func (_m *API) GetSession(sessionID string) (*model.Session, *model.AppError) {
return r0, r1
}
// GetSystemInstallDate provides a mock function with given fields:
// GetSystemInstallDate provides a mock function with no fields
func (_m *API) GetSystemInstallDate() (int64, *model.AppError) {
ret := _m.Called()
@@ -3022,7 +3022,7 @@ func (_m *API) GetTeamStats(teamID string) (*model.TeamStats, *model.AppError) {
return r0, r1
}
// GetTeams provides a mock function with given fields:
// GetTeams provides a mock function with no fields
func (_m *API) GetTeams() ([]*model.Team, *model.AppError) {
ret := _m.Called()
@@ -3118,7 +3118,7 @@ func (_m *API) GetTeamsUnreadForUser(userID string) ([]*model.TeamUnread, *model
return r0, r1
}
// GetTelemetryId provides a mock function with given fields:
// GetTelemetryId provides a mock function with no fields
func (_m *API) GetTelemetryId() string {
ret := _m.Called()
@@ -3136,7 +3136,7 @@ func (_m *API) GetTelemetryId() string {
return r0
}
// GetUnsanitizedConfig provides a mock function with given fields:
// GetUnsanitizedConfig provides a mock function with no fields
func (_m *API) GetUnsanitizedConfig() *model.Config {
ret := _m.Called()
@@ -3610,7 +3610,7 @@ func (_m *API) InviteRemoteToChannel(channelID string, remoteID string, userID s
return r0
}
// IsEnterpriseReady provides a mock function with given fields:
// IsEnterpriseReady provides a mock function with no fields
func (_m *API) IsEnterpriseReady() bool {
ret := _m.Called()
@@ -3708,7 +3708,7 @@ func (_m *API) KVDelete(key string) *model.AppError {
return r0
}
// KVDeleteAll provides a mock function with given fields:
// KVDeleteAll provides a mock function with no fields
func (_m *API) KVDeleteAll() *model.AppError {
ret := _m.Called()
@@ -3862,7 +3862,7 @@ func (_m *API) KVSetWithOptions(key string, value []byte, options model.PluginKV
return r0, r1
}
// ListBuiltInCommands provides a mock function with given fields:
// ListBuiltInCommands provides a mock function with no fields
func (_m *API) ListBuiltInCommands() ([]*model.Command, error) {
ret := _m.Called()

Просмотреть файл

@@ -1,4 +1,4 @@
// Code generated by mockery v2.42.2. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
// Regenerate this file using `make plugin-mocks`.

Просмотреть файл

@@ -1,4 +1,4 @@
// Code generated by mockery v2.42.2. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
// Regenerate this file using `make plugin-mocks`.
@@ -149,7 +149,7 @@ func (_m *Hooks) GenerateSupportData(c *plugin.Context) ([]*model.FileData, erro
return r0, r1
}
// Implemented provides a mock function with given fields:
// Implemented provides a mock function with no fields
func (_m *Hooks) Implemented() ([]string, error) {
ret := _m.Called()
@@ -304,7 +304,7 @@ func (_m *Hooks) NotificationWillBePushed(pushNotification *model.PushNotificati
return r0, r1
}
// OnActivate provides a mock function with given fields:
// OnActivate provides a mock function with no fields
func (_m *Hooks) OnActivate() error {
ret := _m.Called()
@@ -327,7 +327,7 @@ func (_m *Hooks) OnCloudLimitsUpdated(limits *model.ProductLimits) {
_m.Called(limits)
}
// OnConfigurationChange provides a mock function with given fields:
// OnConfigurationChange provides a mock function with no fields
func (_m *Hooks) OnConfigurationChange() error {
ret := _m.Called()
@@ -345,7 +345,7 @@ func (_m *Hooks) OnConfigurationChange() error {
return r0
}
// OnDeactivate provides a mock function with given fields:
// OnDeactivate provides a mock function with no fields
func (_m *Hooks) OnDeactivate() error {
ret := _m.Called()
@@ -404,7 +404,7 @@ func (_m *Hooks) OnSAMLLogin(c *plugin.Context, user *model.User, assertion *sam
return r0
}
// OnSendDailyTelemetry provides a mock function with given fields:
// OnSendDailyTelemetry provides a mock function with no fields
func (_m *Hooks) OnSendDailyTelemetry() {
_m.Called()
}