mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(flake.nix): switch dogfood dev image to buildNixShellImage from dockerTools (#16223)
Replace Depot build action with Nix for Nix dogfood image builds The dogfood Nix image is now built using Nix's native container tooling instead of Depot. This change: - Adds Nix setup steps to the GitHub Actions workflow - Removes the Dockerfile.nix in favor of a Nix-native container build - Updates the flake.nix to support building Docker images - Introduces a hash file to track Nix-related changes - Updates the vendorHash for Go dependencies Change-Id: I4e011fe3a19d9a1375fbfd5223c910e59d66a5d9 Signed-off-by: Thomas Kosiewski <tk@coder.com>
This commit is contained in:
@ -20,6 +20,7 @@ import (
|
||||
type MockPubsub struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockPubsubMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockPubsubMockRecorder is the mock recorder for MockPubsub.
|
||||
@ -54,45 +55,45 @@ func (mr *MockPubsubMockRecorder) Close() *gomock.Call {
|
||||
}
|
||||
|
||||
// Publish mocks base method.
|
||||
func (m *MockPubsub) Publish(arg0 string, arg1 []byte) error {
|
||||
func (m *MockPubsub) Publish(event string, message []byte) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Publish", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "Publish", event, message)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Publish indicates an expected call of Publish.
|
||||
func (mr *MockPubsubMockRecorder) Publish(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockPubsubMockRecorder) Publish(event, message any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockPubsub)(nil).Publish), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockPubsub)(nil).Publish), event, message)
|
||||
}
|
||||
|
||||
// Subscribe mocks base method.
|
||||
func (m *MockPubsub) Subscribe(arg0 string, arg1 pubsub.Listener) (func(), error) {
|
||||
func (m *MockPubsub) Subscribe(event string, listener pubsub.Listener) (func(), error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Subscribe", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "Subscribe", event, listener)
|
||||
ret0, _ := ret[0].(func())
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Subscribe indicates an expected call of Subscribe.
|
||||
func (mr *MockPubsubMockRecorder) Subscribe(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockPubsubMockRecorder) Subscribe(event, listener any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockPubsub)(nil).Subscribe), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockPubsub)(nil).Subscribe), event, listener)
|
||||
}
|
||||
|
||||
// SubscribeWithErr mocks base method.
|
||||
func (m *MockPubsub) SubscribeWithErr(arg0 string, arg1 pubsub.ListenerWithErr) (func(), error) {
|
||||
func (m *MockPubsub) SubscribeWithErr(event string, listener pubsub.ListenerWithErr) (func(), error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SubscribeWithErr", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "SubscribeWithErr", event, listener)
|
||||
ret0, _ := ret[0].(func())
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SubscribeWithErr indicates an expected call of SubscribeWithErr.
|
||||
func (mr *MockPubsubMockRecorder) SubscribeWithErr(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockPubsubMockRecorder) SubscribeWithErr(event, listener any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeWithErr", reflect.TypeOf((*MockPubsub)(nil).SubscribeWithErr), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeWithErr", reflect.TypeOf((*MockPubsub)(nil).SubscribeWithErr), event, listener)
|
||||
}
|
||||
|
Reference in New Issue
Block a user