From ead21aad5820590bb223b423cef8f3eed4c7889f Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Tue, 1 Sep 2026 09:25:29 -0500 Subject: [PATCH] Re-create generated code. The "generate command strings" job started failing on master because of unexpected code ordering: https://github.com/superfly/flyctl/actions/runs/33441418238/job/99650293343 This PR re-creates the generated code to fix the problem. --- internal/build/imgsrc/flaps_mock_test.go | 56 ++++++++++++------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/internal/build/imgsrc/flaps_mock_test.go b/internal/build/imgsrc/flaps_mock_test.go index 9fdc47e7c0..ec845c4b05 100644 --- a/internal/build/imgsrc/flaps_mock_test.go +++ b/internal/build/imgsrc/flaps_mock_test.go @@ -406,6 +406,20 @@ func (mr *MockFlapsClientMockRecorder) DeleteVolume(ctx, appName, volumeId any) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVolume", reflect.TypeOf((*MockFlapsClient)(nil).DeleteVolume), ctx, appName, volumeId) } +// Destroy mocks base method. +func (m *MockFlapsClient) Destroy(ctx context.Context, appName string, input fly.RemoveMachineInput, nonce string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Destroy", ctx, appName, input, nonce) + ret0, _ := ret[0].(error) + return ret0 +} + +// Destroy indicates an expected call of Destroy. +func (mr *MockFlapsClientMockRecorder) Destroy(ctx, appName, input, nonce any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockFlapsClient)(nil).Destroy), ctx, appName, input, nonce) +} + // DisableManagedPostgresExtension mocks base method. func (m *MockFlapsClient) DisableManagedPostgresExtension(ctx context.Context, id, database, name string, force bool) error { m.ctrl.T.Helper() @@ -434,20 +448,6 @@ func (mr *MockFlapsClientMockRecorder) EnableManagedPostgresExtension(ctx, id, d return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableManagedPostgresExtension", reflect.TypeOf((*MockFlapsClient)(nil).EnableManagedPostgresExtension), ctx, id, database, req) } -// Destroy mocks base method. -func (m *MockFlapsClient) Destroy(ctx context.Context, appName string, input fly.RemoveMachineInput, nonce string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Destroy", ctx, appName, input, nonce) - ret0, _ := ret[0].(error) - return ret0 -} - -// Destroy indicates an expected call of Destroy. -func (mr *MockFlapsClientMockRecorder) Destroy(ctx, appName, input, nonce any) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockFlapsClient)(nil).Destroy), ctx, appName, input, nonce) -} - // Exec mocks base method. func (m *MockFlapsClient) Exec(ctx context.Context, appName, machineID string, in *fly.MachineExecRequest) (*fly.MachineExecResponse, error) { m.ctrl.T.Helper() @@ -899,34 +899,34 @@ func (mr *MockFlapsClientMockRecorder) ListManagedPostgresDatabases(ctx, id any) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagedPostgresDatabases", reflect.TypeOf((*MockFlapsClient)(nil).ListManagedPostgresDatabases), ctx, id) } -// ListManagedPostgresUsers mocks base method. -func (m *MockFlapsClient) ListManagedPostgresUsers(ctx context.Context, id string) ([]flaps.ManagedPostgresUser, error) { +// ListManagedPostgresExtensions mocks base method. +func (m *MockFlapsClient) ListManagedPostgresExtensions(ctx context.Context, id, database string) ([]flaps.ManagedPostgresExtension, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListManagedPostgresUsers", ctx, id) - ret0, _ := ret[0].([]flaps.ManagedPostgresUser) + ret := m.ctrl.Call(m, "ListManagedPostgresExtensions", ctx, id, database) + ret0, _ := ret[0].([]flaps.ManagedPostgresExtension) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListManagedPostgresUsers indicates an expected call of ListManagedPostgresUsers. -func (mr *MockFlapsClientMockRecorder) ListManagedPostgresUsers(ctx, id any) *gomock.Call { +// ListManagedPostgresExtensions indicates an expected call of ListManagedPostgresExtensions. +func (mr *MockFlapsClientMockRecorder) ListManagedPostgresExtensions(ctx, id, database any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagedPostgresUsers", reflect.TypeOf((*MockFlapsClient)(nil).ListManagedPostgresUsers), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagedPostgresExtensions", reflect.TypeOf((*MockFlapsClient)(nil).ListManagedPostgresExtensions), ctx, id, database) } -// ListManagedPostgresExtensions mocks base method. -func (m *MockFlapsClient) ListManagedPostgresExtensions(ctx context.Context, id, database string) ([]flaps.ManagedPostgresExtension, error) { +// ListManagedPostgresUsers mocks base method. +func (m *MockFlapsClient) ListManagedPostgresUsers(ctx context.Context, id string) ([]flaps.ManagedPostgresUser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListManagedPostgresExtensions", ctx, id, database) - ret0, _ := ret[0].([]flaps.ManagedPostgresExtension) + ret := m.ctrl.Call(m, "ListManagedPostgresUsers", ctx, id) + ret0, _ := ret[0].([]flaps.ManagedPostgresUser) ret1, _ := ret[1].(error) return ret0, ret1 } -// ListManagedPostgresExtensions indicates an expected call of ListManagedPostgresExtensions. -func (mr *MockFlapsClientMockRecorder) ListManagedPostgresExtensions(ctx, id, database any) *gomock.Call { +// ListManagedPostgresUsers indicates an expected call of ListManagedPostgresUsers. +func (mr *MockFlapsClientMockRecorder) ListManagedPostgresUsers(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagedPostgresExtensions", reflect.TypeOf((*MockFlapsClient)(nil).ListManagedPostgresExtensions), ctx, id, database) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagedPostgresUsers", reflect.TypeOf((*MockFlapsClient)(nil).ListManagedPostgresUsers), ctx, id) } // ListSecretKeys mocks base method.