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
Respect the default working-directory of a job #369
Labels
Comments
PR is always welcome |
This comment was marked as off-topic.
This comment was marked as off-topic.
switchupcb
added a commit
to switchupcb/disgo
that referenced
this issue
Jul 5, 2023
switchupcb
added a commit
to switchupcb/disgo
that referenced
this issue
Jul 5, 2023
* update linter commands * lint examples * fix generator linter * fix linter examples and generator working directory golangci/golangci-lint-action#369
ldez
added
enhancement
New feature or request
declined
and removed
enhancement
New feature or request
labels
May 4, 2024
The
There is no way to get this information (it's neither inside the GitHub context nor inside the env vars) So the only solution is to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When setting the default working-directory of a job,
golangci-lint-action
does not respect this parameter.For example, I have the following project structure:
And a configured GitHub actions job:
To which I receive the following error:
This is because
golangci-lint run
is still being ran from the root directory. If I pass theworking-directory
arg to the GH action, it works as expected:As I can see the
--path-prefix
flag being passed:The text was updated successfully, but these errors were encountered: