Skip to content

Commit dd6b350

Browse files
intel352claude
andcommitted
fix: remove eventbus v1 self-reference, use v2 import path for mocks
The eventbus/v2 go.mod had a require + replace for the v1 eventbus module path (for mocks). The replace directive doesn't propagate to consumers, causing 'unknown revision' errors when downstream modules run go mod tidy. Fix: change test imports from .../eventbus/mocks to .../eventbus/v2/mocks (the correct v2 import path) and remove the v1 require/replace. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3d95580 commit dd6b350

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

modules/eventbus/go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ toolchain go1.25.0
77
require (
88
github.com/DataDog/datadog-go/v5 v5.4.0
99
github.com/GoCodeAlone/modular v1.12.0
10-
github.com/GoCodeAlone/modular/modules/eventbus v0.0.0-00010101000000-000000000000
1110
github.com/IBM/sarama v1.45.2
1211
github.com/aws/aws-sdk-go-v2/config v1.31.0
1312
github.com/aws/aws-sdk-go-v2/service/kinesis v1.38.0
@@ -87,5 +86,3 @@ require (
8786
google.golang.org/protobuf v1.36.6 // indirect
8887
gopkg.in/yaml.v3 v3.0.1 // indirect
8988
)
90-
91-
replace github.com/GoCodeAlone/modular/modules/eventbus => ./

modules/eventbus/kafka_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/stretchr/testify/require"
1313
"go.uber.org/mock/gomock"
1414

15-
"github.com/GoCodeAlone/modular/modules/eventbus/mocks"
15+
"github.com/GoCodeAlone/modular/modules/eventbus/v2/mocks"
1616
)
1717

1818
// newTestKafkaEventBus creates a KafkaEventBus wired to a mock producer,

modules/eventbus/kinesis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/stretchr/testify/require"
1616
"go.uber.org/mock/gomock"
1717

18-
"github.com/GoCodeAlone/modular/modules/eventbus/mocks"
18+
"github.com/GoCodeAlone/modular/modules/eventbus/v2/mocks"
1919
)
2020

2121
// newTestKinesisEventBus creates a KinesisEventBus wired to a mock client,

0 commit comments

Comments
 (0)