Skip to content

Commit 90011a7

Browse files
authored
add empty go.mod file in scaffold directory to prevent errant imports (#2710)
1 parent cfbb39a commit 90011a7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ tasks:
324324
- cmd: "{{.RMRF}} dist/tsunamiscaffold"
325325
ignore_error: true
326326
- task: copyfiles:'tsunami/frontend/scaffold':'dist/tsunamiscaffold'
327+
- 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}}'
327328
deps:
328329
- tsunami:scaffold
329330
sources:

tsunami/templates/empty-gomod.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module empty
2+
3+
go 1.24.6

0 commit comments

Comments
 (0)