-
-
Notifications
You must be signed in to change notification settings - Fork 164
Add path prefix if working directory specified #34
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
Conversation
you are so fast! :-) Is it possible to test GitHub Actions by specifying a commit id instead of version? |
@SVilgelm, even without path-prefix, I think specifying an absolute path for That said, nothing to stop people from doing it! I think the path-prefix logic behaves reasonably in that scenario because it still prefers user override. relative path: ✅working-directory: A relative path is the most likely usage pattern imo, and it works exactly like you'd want (and what GH wants). absolute path, no explicit
|
@jwilner thank you for the explanation, I'm totally agree with you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can do much more besides merging it.
@iwankgb it's great that you merged it, but It depends on the golangci/golangci-lint#1226 pull request, what is not merged yet and the action can fail with an error:
|
I just merged golangci/golangci-lint#1226, but I don't think there is a way to point to golangci-lint master branch, so we need to wait for release as well ? |
Sorry, I have not realised it and have not read description carefully enough. Can any of you file a reverting PR, please? |
@jwilner no worries, that PR and a fix for that PR are already merged to master :) |
@SVilgelm what's the procedure for cutting a new release of golangci-lint? Seems like it'd just be a patch version. |
@jwilner I never did it, probably we need to ask @sayboras. But according to the documentation[1] we just need to create a new tag. [1] https://golangci-lint.run/contributing/workflow/#new-releases |
Beyond the tag some documentation must be generated |
Following up on #31 -- adds
--path-prefix
ifworking-directory
is specified.Worth noting that this PR and this option basically have a dependency on golangci/golangci-lint#1226