Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(upgrade): verify astro installation before upgrade to prevent false success #12576

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

apatel369
Copy link
Contributor

@apatel369 apatel369 commented Nov 30, 2024

closes #12535

Changes

This PR addresses the issue where running upgrade on a directory without an Astro installation would incorrectly confirm that all updates were done. It now throws an error if Astro is not installed.

Check video below:
basics dir has astro installed so it does not throw errors and proceed.
astro-fork dir does not have astro installed so it stops with an error.

Screen.Recording.2024-11-30.at.4.46.20.PM.mov

Testing

Manually tested

Docs

N/A bug fix

Copy link

changeset-bot bot commented Nov 30, 2024

⚠️ No Changeset found

Latest commit: 295db64

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@bluwy bluwy merged commit 19b3ac0 into withastro:main Dec 4, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@astrojs/upgrade should check if the current directory has astro installed
2 participants