Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Bun/Node: remove the --no-save which seems to cause issues sometimes#412

Merged
jhaynie merged 1 commit intomainfrom
remove-no-save
Jul 8, 2025
Merged

Bun/Node: remove the --no-save which seems to cause issues sometimes#412
jhaynie merged 1 commit intomainfrom
remove-no-save

Conversation

@jhaynie
Copy link
Copy Markdown
Member

@jhaynie jhaynie commented Jul 8, 2025

Summary by CodeRabbit

  • Chores
    • Updated a core dependency to a newer version.
    • Simplified package installation commands by removing the --no-save flag from relevant install processes.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 8, 2025

Walkthrough

The updates remove the --no-save flag from package installation commands in the JavaScript bundling logic, affecting both Bun and Node.js workflows. Additionally, the Go module dependency github.com/agentuity/go-common is upgraded from version v1.0.64 to v1.0.67. No changes were made to exported or public entities.

Changes

File(s) Change Summary
go.mod Updated github.com/agentuity/go-common dependency from v1.0.64 to v1.0.67.
internal/bundler/bundler.go Removed --no-save flag from Bun and npm install commands in JavaScript bundling logic.

Poem

A hop, a skip, a version jumps ahead—
No more "no-save" flags to dread!
Dependencies now neatly penned,
As Bun and Node installs amend.
With code refreshed, I thump with glee,
Another change—so bug-free!
🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-no-save

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 820b16e and de0870e.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • go.mod (1 hunks)
  • internal/bundler/bundler.go (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: Test CLI Upgrade Path (windows-latest)
  • GitHub Check: Test CLI Upgrade Path (blacksmith-4vcpu-ubuntu-2204-arm)
  • GitHub Check: Test CLI Upgrade Path (macos-latest)
  • GitHub Check: Test CLI Upgrade Path (blacksmith-4vcpu-ubuntu-2204)
  • GitHub Check: Build and Test (blacksmith-4vcpu-ubuntu-2204-arm)
  • GitHub Check: Test Install Script (blacksmith-4vcpu-ubuntu-2204)
  • GitHub Check: Build and Test (blacksmith-4vcpu-ubuntu-2204)
  • GitHub Check: Build and Test (macos-latest)
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (go)
🔇 Additional comments (2)
go.mod (1)

7-7: Dependency update verified and secure

  • Confirmed that github.com/agentuity/go-common v1.0.67 exists (published 2025-06-17).
  • No known security advisories or CVEs affecting this release.

This minor version bump is safe to merge.

internal/bundler/bundler.go (1)

109-109: Ensure source-map-js persists in package.json

Removing --no-save means bun add source-map-js will now add the dependency to your project’s package.json (it isn’t present today). This change makes source-map-js a permanent dependency, which can affect build reproducibility and CI/CD installs. Confirm this aligns with your dependency management strategy.

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"}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Behavioral change: bun install will now save dependencies to package.json.

Removing --no-save from the bun install command means dependencies will be saved to package.json. This change aligns with the npm install modification but could have significant implications.

Consider the following impacts:

  • Dependencies will now be persisted in package.json
  • This could affect build reproducibility across different environments
  • CI/CD pipelines may need adjustment if they rely on the current behavior
  • Team members will automatically install these dependencies

If the goal is to ensure dependencies are tracked, this change makes sense. However, if temporary installation was intended, consider using --no-save explicitly or documenting this behavioral change.

🤖 Prompt for AI Agents
In internal/bundler/bundler.go at line 152, the bun install command was changed
by removing the --no-save flag, causing dependencies to be saved to
package.json. To fix this, decide if you want dependencies to be persisted; if
not, re-add the --no-save flag to the args slice to prevent modifying
package.json and maintain the previous behavior. If saving dependencies is
intended, ensure this behavioral change is documented and communicated to the
team.

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")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Behavioral change: npm install will now save dependencies to package.json.

Removing --no-save from the npm install command means dependencies will be saved to package.json. This is a significant change in dependency management behavior.

Since this command is used for installing production dependencies (note the --include=prod flag), consider:

  • Whether saving dependencies to package.json is intentional
  • If this might cause conflicts with existing package.json entries
  • The impact on CI/CD pipelines that rely on the current behavior

If the intent is to install without saving, consider using --no-save explicitly or use a different approach like npm ci for production installs.

🤖 Prompt for AI Agents
In internal/bundler/bundler.go at line 150, the npm install command was changed
to remove the --no-save flag, causing dependencies to be saved to package.json,
which alters the intended behavior. To fix this, explicitly add the --no-save
flag back to the npm install command to prevent modifying package.json during
production dependency installation, or alternatively replace the command with
npm ci if the goal is to install exact dependencies from package-lock.json
without saving changes.

@jhaynie jhaynie merged commit 6312321 into main Jul 8, 2025
14 checks passed
@jhaynie jhaynie deleted the remove-no-save branch July 8, 2025 04:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant