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 entrypoint script configurator encoding and line endings in windows #10814

Merged
merged 2 commits into from
May 17, 2024

Conversation

dfangl
Copy link
Member

@dfangl dfangl commented May 14, 2024

Motivation

When using the CLI in extension dev mode under windows, the custom container entrypoint file gets generated using windows file endings (\r\n).
This file is then mounted into the linux container, and fails to execute due to the wrong line endings.

To avoid this, we now force linux file endings for container entrypoints, and in addition utf-8 encoding, since some entrypoints (for example the extension dev mode one) contains unicode characters.

Changes

  • LocalStack now starts in extension dev mode under windows without additional intervention

@dfangl dfangl self-assigned this May 14, 2024
@dfangl dfangl requested a review from thrau May 14, 2024 11:48
@dfangl dfangl added semver: patch Non-breaking changes which can be included in patch releases area: cli LocalStack CLI labels May 14, 2024
Copy link

github-actions bot commented May 14, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 36m 20s ⏱️ -13s
2 941 tests ±0  2 640 ✅ ±0  301 💤 ±0  0 ❌ ±0 
2 943 runs  ±0  2 640 ✅ ±0  303 💤 ±0  0 ❌ ±0 

Results for commit 4ba9cbb. ± Comparison against base commit 3c4c463.

♻️ This comment has been updated with latest results.

Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch! lgtm 💯

@dfangl dfangl force-pushed the fix/entrypoint-configurator-windows branch from 37431ad to 4ba9cbb Compare May 15, 2024 07:52
@dfangl dfangl merged commit ed82388 into master May 17, 2024
30 checks passed
@dfangl dfangl deleted the fix/entrypoint-configurator-windows branch May 17, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cli LocalStack CLI semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants