From d984c104ccd4ec0df6e79f5bbb1436e107b26a0d Mon Sep 17 00:00:00 2001 From: George <34684178+gvee-uk@users.noreply.github.com> Date: Tue, 14 Sep 2021 00:25:15 +0100 Subject: [PATCH] fix: Normalise `*.sh` File Endings (#16608) Windows users encounter problems running the `docker-compose` commands to run an instance of Superset. The reason for this is line-endings for the `*.sh` files that are mounted and used in the `command` sections for the superset images. Many Windows users will check the repository out with line endings set to `CRLF`. When mounted in to the *nix-based containers, these line endings are not understood, leading to errors such as: ```text /usr/bin/env: bash\r: No such file or directory ``` The addition of a `.gitattributes` file resolves this issue by telling git to always resolve these files with `LF` line endings. +semver: fix +ref: #10132 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..79f44a6b2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +docker/**/*.sh text eol=lf