Skip to content

Remove warning for bun, causing unexpected console spam#14402

Merged
ascorbic merged 3 commits intomainfrom
FredKSchott-patch-1
Sep 19, 2025
Merged

Remove warning for bun, causing unexpected console spam#14402
ascorbic merged 3 commits intomainfrom
FredKSchott-patch-1

Conversation

@FredKSchott
Copy link
Copy Markdown
Member

@FredKSchott FredKSchott commented Sep 19, 2025

Changes

Fixes #14401

previously, Bun users were seeing this when they used bun to install their npm packages, and then ran astro dev, astro build, etc.

image

This was introduced in #14300 to intentionally add the message to astro info, but not realizing that the helper function getInfoOutput() was called outside of astro info during normal render, for debugging purposes.

This PR removes that warning for now, since we shouldn't be printing inside of a helper utility like that. We could add it back in the future, but I also don't think it's communicating the correct message about our Bun support (tldr: we support Node, and Bun is Node compatible, so Astro should be expected to work correctly in Bun. if it does not, that's bun's problem to solve, but that is different from "Bun is not supported"). Update: wait I was wrong, this is Bun the package installer, not the runtime. AFAIK Astro runs for users who use Bun as their package installer, so I think this message is just wrong vs. not worded correctly. Please correct me if I'm incorrect on that, but we have many Astro users who use bun to install their packages so I can't imagine this is true.

Testing

Not tested, just removed a console log.

Docs

Not needed.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 19, 2025

🦋 Changeset detected

Latest commit: 7126211

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 19, 2025
@FredKSchott
Copy link
Copy Markdown
Member Author

cc @louisescher please take a look!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Sep 19, 2025

CodSpeed Performance Report

Merging #14402 will not alter performance

Comparing FredKSchott-patch-1 (ed8686b) with main (f59581f)1

Summary

✅ 6 untouched

Footnotes

  1. No successful run was found on main (16bb9f0) during the generation of this report, so f59581f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@louisescher
Copy link
Copy Markdown
Member

Hi @FredKSchott. Sorry for this one. I believe this line was added fairly last minute before the PR got merged since we wanted to handle the bun case and not just show no versions, the side effect of it being shown while the dev server is running is obviously not intended. This is good to merge from my side.

Copy link
Copy Markdown
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

LGTM. The original reason was to avoid displaying nothing when used by Bun users, but I think they can live with it.

@ascorbic ascorbic merged commit 54dcd04 into main Sep 19, 2025
2 checks passed
@ascorbic ascorbic deleted the FredKSchott-patch-1 branch September 19, 2025 05:44
@astrobot-houston astrobot-houston mentioned this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor spelling error in "packages/astro/src/cli/info/index.ts" (new bun warning)

4 participants