-
Notifications
You must be signed in to change notification settings - Fork 464
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
couldn't find HOME environment -- expanding `~' #746
Comments
The error could only be caused by your environment not having a You can verify this by trying:
There's not much else I believe I can offer here–you'll need to dig into your CI environment to figure out what's going on. |
Yeah, I think you are right. I think I trace through the execution path more closely and see if I can find a missing link. Thanks! |
@lencioni Did you ever find a solution to this issue? It's still plaguing my local env due to my lack of ruby experience. |
@modkaffes I think I fixed it but it was too long ago now I don't remember what I did. Sorry! |
@lencioni No problem, it was a really long shot posting in a thread this old. I'll try to find a solution myself, too. Thank you! |
I'm putting this here for future self-reference in case this issue happens again, and of course for anyone that might have the same problem. After much research regarding how Ruby detects User's home dir, I stumbled upon this comment: |
I'm setting up scss-lint in a new environment and am running into this when I run
bundle exec scss-lint
.This is a CI environment where we are creating a tmp dir via
Dir.mktmpdir
to run things in. We take this path and later set theHOME
environment variable to it by passing it toOpen3.popen2e
when we runbundle exec scss-lint
, which is where we get this error. We also have other jobs in here that from what I can tell are set up in the same way to set this environment variable and then run a differentbundle exec
command (e.g.rspec
andrubocop
), but those don't blow up in this way. Any ideas on what is happening here?For reference, this is the line that is blowing up (I believe on the call to
Dir.home
): https://github.com/brigade/scss-lint/blob/e6d20f537d021445da9583cbe1ec29bcded5ec32/lib/scss_lint/config.rb#L42The text was updated successfully, but these errors were encountered: