Today, I was wondering to know why on the CI pipeline, tests were failing due to missing files but those files are on the file system locally and push on the GIT repository. This issue came from files renamed updating from lowercase to uppercase.
Windows & OSX file systems are not case sensitive. So if you are one user of one of these two operating systems, here the two solutions you can use.
One simple workaround is to use the
git mv command as follows:
git mv camelcase camelCase git commit -m "fix camelCase name"
Another solution you can use is to configure GIT to be case sensitive with the current files system type.
From this documentation de git-config
Internal variable which enables various workarounds to enable Git to work better on filesystems that are not case sensitive, like APFS, HFS+, FAT, NTFS, etc. For example, if a directory listing finds "makefile" when Git expects "Makefile", Git will assume it is really the same file, and continue to remember it as "Makefile".
To enable it, assign the value
git config core.ignorecase false
Undo a git add
An unwanted " git add " can happen. That's why there is a command to redo this " git add ". Here the command line to perform this action.
Gatsby + Netlify CMS + TailwindCSS Starter
With the number of websites generated with the same tools, I tend to mutualize as much as we can the effort to maintain the technical stack. Following this principle, I just created a new starter coming from some of my website development and powered with Gatsby.
How to enable Python type checking in VSCode
Python now has support for type hints. In this article, we will see how to enable better IntelliSense and type checking analysis in VSCode.
How to manage Internationalization with NextJS SSG
Staticaly generating a website with the NextJS framework in different languages is not so obvious.