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: resolve directory correctly when fs.cachedChecks: true #15983

Merged
merged 4 commits into from Feb 20, 2024

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Feb 20, 2024

Description

I checked this with #15858 and #15901.

fixes #15858
fixes #15901
refs #15279

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines, especially the Pull Request Guidelines.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Update the corresponding documentation if needed.
  • Ideally, include relevant tests that fail without this PR but pass with it.

Copy link

stackblitz bot commented Feb 20, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release labels Feb 20, 2024
@sapphi-red sapphi-red changed the title test: non-normalized absolute path fix: resolve directory correctly when fs.cachedChecks: true Feb 20, 2024
@sapphi-red sapphi-red marked this pull request as ready for review February 20, 2024 12:38
@patak-dev
Copy link
Member

Oh, amazing! Thanks for digging into this @sapphi-red. Let's merge it and release a patch. Maybe we could extract this as an util and apply it when we normalize paths in the config too? I was under the impression that the normalized path will not have the trailing / and I think we have some paths expecting that

@patak-dev patak-dev merged commit 4fe971f into vitejs:main Feb 20, 2024
15 checks passed
@sapphi-red
Copy link
Member Author

Yeah, maybe we can apply it in normalizePath.

@sapphi-red sapphi-red deleted the fix/non-normalized-absolute-path branch February 20, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release
Projects
None yet
2 participants