Conversation

mattjohnsonpint

I struggled a bit with setting the path to a config file until I realized that the path needs to be a full absolute path on disk when Actions runs it. Using the .workspace context variable seems to be the easiest solution.

Just thought I would document it to save someone else from the frustration.

@ldezldez added the documentationImprovements or additions to documentationlabel Apr 4, 2025
@ldezldez self-requested a review April 4, 2025 00:23
@ldezldez changed the title docs: use workspace in config path docs: add note about .workspace Apr 4, 2025
@ldez

The path doesn't need to be an absolute path, it depends on your project structure.

@ldezldez added the enhancementNew feature or requestlabel Apr 4, 2025
ldez
ldez approved these changes Apr 4, 2025
@ldezldez merged commit f51fbec into golangci:main Apr 4, 2025
@mattjohnsonpintmattjohnsonpint deleted the readme branch April 4, 2025 03:33
@mattjohnsonpint

The path doesn't need to be an absolute path, it depends on your project structure.

Hmmm... I tried a relative path but couldn't get it to work. Anyway, this does.

adityamaru pushed a commit to useblacksmith/golangci-lint-action that referenced this pull request May 30, 2025
Sign up for free to join this conversation on . Already have an account? Sign in to comment
documentationImprovements or additions to documentationenhancementNew feature or request
None yet

Successfully merging this pull request may close these issues.