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: Normalise *.sh File Endings #16608

Merged
merged 1 commit into from
Sep 13, 2021
Merged

fix: Normalise *.sh File Endings #16608

merged 1 commit into from
Sep 13, 2021

Conversation

gvee-uk
Copy link
Contributor

@gvee-uk gvee-uk commented Sep 6, 2021

SUMMARY

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:

/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.

fixes #10132

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

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
@gvee-uk
Copy link
Contributor Author

gvee-uk commented Sep 6, 2021

I wasn't sure if a *.sh text eol=lf would be accepted as it's a broader brush change, hence why I have opted for a more targetted docker/**/*.sh text eol=lf.

@suddjian
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@suddjian Container image not yet published for this PR. Please try again when build is complete.

@github-actions
Copy link
Contributor

@suddjian Ephemeral environment creation failed. Please check the Actions logs for details.

@suddjian
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@suddjian Ephemeral environment spinning up at http://54.188.58.11:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@suddjian suddjian left a 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!

@suddjian suddjian merged commit d984c10 into apache:master Sep 13, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
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
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
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
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with Login on Windows 10 using Docker: sqlalchemy.exc.ProgrammingError
3 participants