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(core): build failure caused by read-only files #10195

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

1574242600
Copy link
Contributor

Changes

fix #10135
In the case of client-side JS scripts and non-SSR mode, the Public directory is copied twice, which leads to build failure when there are read-only files in the Public directory. This PR fixes the issue of duplicate copying.

Testing

fixtures/build-readonly-file

Docs

Because this will not have any impact on Astro's build process.

Copy link

changeset-bot bot commented Feb 22, 2024

🦋 Changeset detected

Latest commit: 5427c00

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 Feb 22, 2024
@1574242600
Copy link
Contributor Author

✖ D:\a\astro\astro\packages\integrations\mdx\node_modules\.astro\test.mjs (50001.5813ms)
    'test timed out after 50000ms'

May I ask if this is a bug? After running 'pnpm run format,' the tests fail, whereas they were passing previously.

@ematipico
Copy link
Member

I'll take a look

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Thank you!

@ematipico ematipico merged commit 903eace into withastro:main Feb 23, 2024
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Feb 23, 2024
@1574242600 1574242600 deleted the fix-build-fail branch February 24, 2024 07:03
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.

Read only file in public dir makes build fail
2 participants