From 78923ad36b0f8abe6cd265edde74a811da9a8581 Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Tue, 19 Mar 2024 10:16:16 -0400 Subject: [PATCH] fix: run go mod tidy and add some go: commands to package.json Signed-off-by: tylerslaton --- .gitignore | 4 ++++ indexer/go.mod | 2 +- package.json | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5280a2d..87733e0 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,7 @@ logs .env .env.* !.env.example + +# Go binaries +indexer/indexer +parser/parser diff --git a/indexer/go.mod b/indexer/go.mod index 519a30b..cd51fed 100644 --- a/indexer/go.mod +++ b/indexer/go.mod @@ -5,6 +5,7 @@ go 1.22.1 require ( github.com/gptscript-ai/gptscript v0.1.5 github.com/lib/pq v1.10.9 + github.com/sirupsen/logrus v1.9.3 ) require ( @@ -14,7 +15,6 @@ require ( github.com/mattn/go-runewidth v0.0.9 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/sashabaranov/go-openai v1.20.1 // indirect - github.com/sirupsen/logrus v1.9.3 // indirect github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect golang.org/x/net v0.20.0 // indirect golang.org/x/sys v0.16.0 // indirect diff --git a/package.json b/package.json index 2f05cae..ad60b57 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "preview": "nuxt preview", "postinstall": "nuxt prepare", "start": "nuxt start", - "start:migrate": "npx prisma migrate deploy && yarn start" + "start:migrate": "npx prisma migrate deploy && yarn start", + "go:tidy": "(cd indexer && go mod tidy) && (cd parser && go mod tidy)", + "go:build": "(cd indexer && go build) && (cd parser && go build)" }, "dependencies": { "@octokit/core": "^6.0.1",