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

Earthly 0.5.15 fails to run commands #1026

Closed
omerbenamram opened this issue May 31, 2021 · 6 comments
Closed

Earthly 0.5.15 fails to run commands #1026

omerbenamram opened this issue May 31, 2021 · 6 comments

Comments

@omerbenamram
Copy link

Hi,

After updating earthly from 0.5.13 to 0.5.15, every command fails with some variation of this message:

Error getting earthly dir: lookup user for homedir: user: unknown userid 116002263

Reverting to 0.5.13 fixes it.

Wondering if this is related to #977?

@alexcb
Copy link
Collaborator

alexcb commented May 31, 2021

Thanks for the report @omerbenamram , can you let us know what OS you are using?

@omerbenamram
Copy link
Author

@alexcb Ubuntu 18.04 :)

@alexcb
Copy link
Collaborator

alexcb commented May 31, 2021

@omerbenamram I haven't been able to replicate the issue, but I've tried changing some error handling in the home directory detection code.

Since I can't replicate the issue, would you be able to try out this new code to see if this fixes the issue for you?

You should be able to compile earthly out of my branch via:

mkdir /tmp/test-earthly-fix && cd /tmp/test-earthly-fix && git clone https://github.com/earthly/earthly.git . && git checkout ignore-errors-when-detecting-home-dir && earthly +for-linux && ls ./build/linux/amd64/earthly

Then if you run ./build/linux/amd64/earthly --version, you should see the git branch and sha referenced:

earthly version ignore-errors-when-detecting-home-dir-95fe6666001aeb4031be7c174681cefd012354ca linux/amd64

Thanks.

@omerbenamram
Copy link
Author

This version indeed runs as expects :)

@alexcb
Copy link
Collaborator

alexcb commented May 31, 2021

Thanks for giving it a test :)

I'll work on getting this branch ready to merge into main, it might be tomorrow by the time we get a fix released.

@alexcb
Copy link
Collaborator

alexcb commented Jun 3, 2021

This has been released under https://github.com/earthly/earthly/releases/tag/v0.5.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants