From de0870eba1760069e87de32f688333df48b86804 Mon Sep 17 00:00:00 2001 From: Jeff Haynie Date: Mon, 7 Jul 2025 23:35:12 -0500 Subject: [PATCH] Bun/Node: remove the --no-save which seems to cause issues sometimes --- go.mod | 2 +- go.sum | 4 ++-- internal/bundler/bundler.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 4575f358..5678d410 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.24.4 require ( github.com/Masterminds/semver v1.5.0 - github.com/agentuity/go-common v1.0.64 + github.com/agentuity/go-common v1.0.67 github.com/agentuity/mcp-golang/v2 v2.0.2 github.com/bmatcuk/doublestar/v4 v4.8.1 github.com/charmbracelet/bubbles v0.20.0 diff --git a/go.sum b/go.sum index 4133cfb0..d3b11180 100644 --- a/go.sum +++ b/go.sum @@ -9,8 +9,8 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/ProtonMail/go-crypto v1.1.5 h1:eoAQfK2dwL+tFSFpr7TbOaPNUbPiJj4fLYwwGE1FQO4= github.com/ProtonMail/go-crypto v1.1.5/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= -github.com/agentuity/go-common v1.0.64 h1:E7PRLFcrPDd32doxSzI2reCpaHtHr3mcSmVl9yz+Ffc= -github.com/agentuity/go-common v1.0.64/go.mod h1:cy1EPYpZUkp3JSMgTb+Sa3sLnS7vQQupj/RwO4An6L4= +github.com/agentuity/go-common v1.0.67 h1:Pw6Lv/2eJ+F4kZZgnZhYy3JyTzA3VEa64h/BPSfayxw= +github.com/agentuity/go-common v1.0.67/go.mod h1:cy1EPYpZUkp3JSMgTb+Sa3sLnS7vQQupj/RwO4An6L4= github.com/agentuity/mcp-golang/v2 v2.0.2 h1:wZqS/aHWZsQoU/nd1E1/iMsVY2dywWT9+PFlf+3YJxo= github.com/agentuity/mcp-golang/v2 v2.0.2/go.mod h1:U105tZXyTatxxOBlcObRgLb/ULvGgT2DJ1nq/8++P6Q= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= diff --git a/internal/bundler/bundler.go b/internal/bundler/bundler.go index 15c06423..0ec9a91d 100644 --- a/internal/bundler/bundler.go +++ b/internal/bundler/bundler.go @@ -106,7 +106,7 @@ func installSourceMapSupportIfNeeded(ctx BundleContext, dir string) error { // only bun needs to install this library to aide in parsing the source maps path := filepath.Join(dir, "node_modules", "source-map-js", "package.json") if !util.Exists(path) { - cmd := exec.CommandContext(ctx.Context, "bun", "add", "source-map-js", "--no-save", "--silent", "--no-progress", "--no-summary", "--ignore-scripts") + cmd := exec.CommandContext(ctx.Context, "bun", "add", "source-map-js", "--silent", "--no-progress", "--no-summary", "--ignore-scripts") cmd.Dir = dir out, err := cmd.CombinedOutput() if err != nil { @@ -147,9 +147,9 @@ func bundleJavascript(ctx BundleContext, dir string, outdir string, theproject * var install *exec.Cmd switch theproject.Bundler.Runtime { case "nodejs": - install = exec.CommandContext(ctx.Context, "npm", "install", "--no-save", "--no-audit", "--no-fund", "--include=prod", "--ignore-scripts") + install = exec.CommandContext(ctx.Context, "npm", "install", "--no-audit", "--no-fund", "--include=prod", "--ignore-scripts") case "bunjs": - args := []string{"install", "--production", "--no-save", "--ignore-scripts"} + args := []string{"install", "--production", "--ignore-scripts"} if ctx.CI { args = append(args, "--verbose", "--no-cache") } else {