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 EOF issue when building on drone in windows. #778

Merged
merged 2 commits into from
May 6, 2024
Merged

Conversation

mattdurham
Copy link
Collaborator

@mattdurham mattdurham commented May 6, 2024

PR Description

When using drone on windows the code must pass through a few layers til it gets to the linux build container, the EOF command is not compatible with windows and will cause issues. In my case it either only partially executed the command or ignored it. That then led to corepack not found since it never installed nodejs.

By using separate RUN lines the behavior is the same when calling drone on linux and windows even when they are both using a linux docker container under the hood.

…ng mixed up line endings. Changing them to normal RUN fixes the problem and allows you to build on windows that passes to a linux container.
@mattdurham mattdurham marked this pull request as ready for review May 6, 2024 21:41
@rfratto
Copy link
Member

rfratto commented May 6, 2024

I'm worried about increased number of layers this adds which will make the build image even bigger than normal; each RUN creates a new layer. Can this be combined into a single run command using && to separate them?

@mattdurham
Copy link
Collaborator Author

Sure, changed to && style

@mattdurham mattdurham merged commit 579fd4f into main May 6, 2024
21 checks passed
@mattdurham mattdurham deleted the fix_eof_windows branch May 6, 2024 22:50
@rfratto rfratto added the backport-to-agent:no PR should NOT be backported to the agent repo. label May 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport-to-agent:no PR should NOT be backported to the agent repo. frozen-due-to-age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants