From 1398ee4198f73597ee38421453cfd1c4e735b4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Wed, 26 Jun 2024 14:29:15 -0400 Subject: [PATCH] remove extraneous substreams.sql.yaml from codegen zip --- ethfull/generate.go | 2 +- injective-events/generate.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethfull/generate.go b/ethfull/generate.go index 5e304f6..021d99e 100644 --- a/ethfull/generate.go +++ b/ethfull/generate.go @@ -227,7 +227,7 @@ func (p *Project) Render(outType outputType) (substreamsFiles map[string][]byte, case "sql": templateFiles["sql/run-local.sh.gotmpl"] = "run-local.sh" templateFiles["sql/schema.sql.gotmpl"] = "BOTH/schema.sql" - templateFiles["sql/substreams.sql.yaml.gotmpl"] = "BOTH/substreams.sql.yaml" + templateFiles["sql/substreams.sql.yaml.gotmpl"] = "substreams/substreams.sql.yaml" default: return nil, nil, fmt.Errorf("unknown sql output flavor %q", p.SqlOutputFlavor) } diff --git a/injective-events/generate.go b/injective-events/generate.go index 97b52bf..d015f10 100644 --- a/injective-events/generate.go +++ b/injective-events/generate.go @@ -49,10 +49,10 @@ func (p *Project) Render(outType outputType) (substreamsFiles map[string][]byte, switch p.SqlOutputFlavor { case "clickhouse": templateFiles["sql/schema.clickhouse.sql.gotmpl"] = "BOTH/schema.sql" - templateFiles["sql/substreams.clickhouse.yaml.gotmpl"] = "BOTH/substreams.clickhouse.yaml" + templateFiles["sql/substreams.clickhouse.yaml.gotmpl"] = "substreams/substreams.clickhouse.yaml" case "sql": templateFiles["sql/schema.sql.gotmpl"] = "BOTH/schema.sql" - templateFiles["sql/substreams.sql.yaml.gotmpl"] = "BOTH/substreams.sql.yaml" + templateFiles["sql/substreams.sql.yaml.gotmpl"] = "substreams/substreams.sql.yaml" default: return nil, nil, fmt.Errorf("unknown sql output flavor %q", p.SqlOutputFlavor) }