-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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: Normalise *.sh
File Endings
#16608
Conversation
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
I wasn't sure if a |
/testenv up |
@suddjian Container image not yet published for this PR. Please try again when build is complete. |
@suddjian Ephemeral environment creation failed. Please check the Actions logs for details. |
/testenv up |
@suddjian Ephemeral environment spinning up at http://54.188.58.11:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice fix, thank you for the contribution!
Ephemeral environment shutdown and build artifacts deleted. |
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: apache#10132
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: apache#10132
SUMMARY
Windows users encounter problems running the
docker-compose
commandsto run an instance of Superset.
The reason for this is line-endings for the
*.sh
files that aremounted 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 lineendings are not understood, leading to errors such as:
The addition of a
.gitattributes
file resolves this issue by tellinggit to always resolve these files with
LF
line endings.fixes #10132
ADDITIONAL INFORMATION