Skip to content

Commit aa38817

Browse files
authored
chore: remove root go.mod import from scaffolded domain (#562)
1 parent a8a25bc commit aa38817

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.changeset/great-views-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink-deployments-framework": minor
3+
---
4+
5+
Removes the import of a root `go.mod` from a scaffolded domain

engine/cld/scaffold/scaffold_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func Test_ScaffoldDomain(t *testing.T) {
6969
repoName := filepath.Base(filepath.Dir(rootDir))
7070
expectedModuleLine := fmt.Sprintf("module github.com/smartcontractkit/%s/domains/%s", repoName, domKey)
7171
assert.Contains(t, string(goModContent), expectedModuleLine)
72-
assert.Contains(t, string(goModContent), fmt.Sprintf("github.com/smartcontractkit/%s => ../../", repoName))
7372

7473
err = ScaffoldDomain(dom)
7574
require.Error(t, err)

engine/cld/scaffold/templates/go.mod.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ replace (
66
github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d
77
// replicating the replace directive on cosmos SDK
88
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
9-
// Use the local version of base repo
10-
github.com/smartcontractkit/{{.repo}} => ../../
119
)

0 commit comments

Comments
 (0)