From 730e32e58340c80fcf270949d61893a71bcc44aa Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 22 Dec 2025 15:22:48 -0800 Subject: [PATCH] add empty go.mod file in scaffold directory to prevent errant imports --- Taskfile.yml | 1 + tsunami/templates/empty-gomod.tmpl | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tsunami/templates/empty-gomod.tmpl diff --git a/Taskfile.yml b/Taskfile.yml index 0cf2568bb..7742bd1c2 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -324,6 +324,7 @@ tasks: - cmd: "{{.RMRF}} dist/tsunamiscaffold" ignore_error: true - task: copyfiles:'tsunami/frontend/scaffold':'dist/tsunamiscaffold' + - cmd: '{{if eq OS "windows"}}powershell Copy-Item -Path tsunami/templates/empty-gomod.tmpl -Destination dist/tsunamiscaffold/go.mod{{else}}cp tsunami/templates/empty-gomod.tmpl dist/tsunamiscaffold/go.mod{{end}}' deps: - tsunami:scaffold sources: diff --git a/tsunami/templates/empty-gomod.tmpl b/tsunami/templates/empty-gomod.tmpl new file mode 100644 index 000000000..7647df07a --- /dev/null +++ b/tsunami/templates/empty-gomod.tmpl @@ -0,0 +1,3 @@ +module empty + +go 1.24.6 \ No newline at end of file