diff --git a/.changeset/great-views-roll.md b/.changeset/great-views-roll.md new file mode 100644 index 000000000..9b72dafc3 --- /dev/null +++ b/.changeset/great-views-roll.md @@ -0,0 +1,5 @@ +--- +"chainlink-deployments-framework": minor +--- + +Removes the import of a root `go.mod` from a scaffolded domain diff --git a/engine/cld/scaffold/scaffold_test.go b/engine/cld/scaffold/scaffold_test.go index 7b118a5c4..d2e5ddcfd 100644 --- a/engine/cld/scaffold/scaffold_test.go +++ b/engine/cld/scaffold/scaffold_test.go @@ -69,7 +69,6 @@ func Test_ScaffoldDomain(t *testing.T) { repoName := filepath.Base(filepath.Dir(rootDir)) expectedModuleLine := fmt.Sprintf("module github.com/smartcontractkit/%s/domains/%s", repoName, domKey) assert.Contains(t, string(goModContent), expectedModuleLine) - assert.Contains(t, string(goModContent), fmt.Sprintf("github.com/smartcontractkit/%s => ../../", repoName)) err = ScaffoldDomain(dom) require.Error(t, err) diff --git a/engine/cld/scaffold/templates/go.mod.tmpl b/engine/cld/scaffold/templates/go.mod.tmpl index 6fa59c2e6..e5e69cd48 100644 --- a/engine/cld/scaffold/templates/go.mod.tmpl +++ b/engine/cld/scaffold/templates/go.mod.tmpl @@ -6,6 +6,4 @@ replace ( github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d // replicating the replace directive on cosmos SDK github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - // Use the local version of base repo - github.com/smartcontractkit/{{.repo}} => ../../ )