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 Content Collections not loading config file when there are spaces in the folder tree #5962

Merged
merged 8 commits into from
Jan 24, 2023

Conversation

MoustaphaDev
Copy link
Member

Changes

Fix #5961

Testing

TODO

Docs

N/A, bug fix

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2023

🦋 Changeset detected

Latest commit: 9b14114

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 Jan 24, 2023
@matthewp
Copy link
Contributor

Can you add a test? Also I think it should be done like its done here: https://github.com/withastro/astro/blob/main/packages/astro/src/core/render/dev/index.ts#L60

using fileURLToPath()

@MoustaphaDev
Copy link
Member Author

Also I think it should be done like its done here: https://github.com/withastro/astro/blob/main/packages/astro/src/core/render/dev/index.ts#L60

using fileURLToPath()

Ah ok, testing that

@MoustaphaDev

This comment was marked as outdated.

Copy link
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

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

looks great, thanks!

Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

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

Nice fix, and with tests! Love the configdence 👏

@matthewp
Copy link
Contributor

The failing test is the flaky one, will restart.

@MoustaphaDev MoustaphaDev merged commit 46b6e14 into main Jan 24, 2023
@MoustaphaDev MoustaphaDev deleted the fix/content-collection-wrong-warning branch January 24, 2023 20:00
@MoustaphaDev

This comment was marked as outdated.

@astrobot-houston astrobot-houston mentioned this pull request Jan 24, 2023
matthewp pushed a commit that referenced this pull request Jan 26, 2023
… in the folder tree (#5962)

* fix

* add test

* use `fileURLToPath` instead

* chore: changeset

* remove useless config file

* revert back to using `decodeURIComponent`

* test: better test

* re-revert back to using `fileURLToPath`
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.

Content Collections can't load config.ts file when there are spaces in the folder tree
3 participants