-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby): Show meaningful error when directory names are too long (#…
…21518) * Truncate long paths automatically * Write out truncated paths * Map to correct disk paths * Serve page-data * Update snapshots * Remove console.log * Make opt-in into truncateLongPaths optional * Empty line * Fix bugs * Add comments and tests * Add tests and update snapshots * Change 200 to 255 * Remove string-hash dependency * Yarn.lock * Move function to utils * Look at segments instead of whole path * Detect problematic paths and panic in production * Reuse isWindows variable * Improve error messages, add development handling: * Change variable name * Remove truncatePaths from config scheme * Remove unneeded export * update config snapshot * Add comments * move most of logic to utils/path, same error for build/develop with slightly different message * no chalk in error messages * test: add basic test for tooLongSegmentsInPath * fixup error message Co-authored-by: Kirill Vasiltsov <v_kirill@yumemi.co.jp> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
- Loading branch information
1 parent
8ac4c21
commit 4404af1
Showing
4 changed files
with
140 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters