Skip to content

fix: get correct home dir on Windows #1069

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Zxilly
Copy link

@Zxilly Zxilly commented Jul 2, 2024

No description provided.

@ldez ldez requested review from ldez July 2, 2024 14:06
return path.resolve(`${process.env.HOME}/.cache/golangci-lint`)
const home = process.platform === "win32" ? "USERPROFILE" : "HOME"

return path.resolve(`${home}/.cache/golangci-lint`)
Copy link
Member

@ldez ldez Jul 2, 2024

Choose a reason for hiding this comment

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

this will just use the path HOME/.cache/golangci-lint not the value of env var.

@ldez
Copy link
Member

ldez commented Jul 2, 2024

As the PR comes from a fork inside a GitHub organization, I cannot edit it, so I close it and open another one.

I recommend not using a GitHub organization to create PR, this is a problem with automation and maintainer modifications.

Edit: fixed in 2c01d26

@ldez ldez closed this Jul 2, 2024
@Zxilly Zxilly deleted the home branch July 3, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants