Skip to content
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

Deprecate built-in github formatter #187

Closed
ybiquitous opened this issue Mar 11, 2024 · 6 comments
Closed

Deprecate built-in github formatter #187

ybiquitous opened this issue Mar 11, 2024 · 6 comments

Comments

@ybiquitous
Copy link

Hey @xt0rted,

Thanks for creating this nice package! I am a maintainer of Stylelint.

I am contacting you since our Stylelint team plans to deprecate the built-in github formatter and considers stylelint-actions-formatters as an alternative.

Do you have any problems if we describe your package in our documentation (e.g. changelog or migration guide)? Please feel free to let me know of any concerns.

@xt0rted
Copy link
Owner

xt0rted commented Mar 13, 2024

Hey @ybiquitous, that sounds good to me. If there's anything I can do to help just let me know.

@ybiquitous
Copy link
Author

Thank you!

@ybiquitous
Copy link
Author

I'm closing this issue since I just want to confirm.

@ybiquitous ybiquitous closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2024
@xt0rted
Copy link
Owner

xt0rted commented Mar 28, 2024

@ybiquitous these formatters aren't actually needed to create annotations in GitHub Actions, for that you just need my problem matcher and to use the string formatter.

What these formatters do is fix the file paths when you run from a sub folder like so:

- uses: xt0rted/[email protected]
- name: Install integration test dependencies
run: npm install
working-directory: test
- name: Run integration tests - stringFormatter
run: npm run test:string
working-directory: test

The output of that:

test/errors.css
  1:9  ✖  Unexpected empty block  block-no-empty

test/warnings.css
  1:1  ⚠  Unexpected empty comment  comment-no-empty
  6:3  ⚠  Unexpected empty comment  comment-no-empty

✖ 3 problems (1 error, 2 warnings)

With the built-in formatters the file paths won't include test/, and since annotation paths need to be relative to the repo root they won't be created.

While publishing v16 releases just now I noticed the annotations aren't being created. I'm hoping I just need to publish a new version of the problem matcher since it's out of date.

For the time being these formatters will give the correct file paths in the build logs, but I don't think you'll be able to get annotations until I fix the problem matcher. I'm going to look at that over the weekend and will let you know when it's all working again in case there's documentation that needs to be updated too.

@ybiquitous
Copy link
Author

Thank you for sharing the info! 😊

@tagliala
Copy link

tagliala commented Oct 8, 2024

Hello, maybe something changed or npx is not supported, but at the moment I'm not able to use this suggested formatter or the action (which also has warnings)

The deprecated formatter is the only approach that worked for me here, as a non-JavaScript developer:

Ref: diowa/ruby3-rails7-bootstrap-heroku#984, xt0rted/stylelint-problem-matcher#592

tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Oct 13, 2024
This formatter has been deprecated, but the suggested alternative does
not work and seems unmaintained

Ref:
- xt0rted/stylelint-actions-formatters#187
- xt0rted/stylelint-problem-matcher#461
- xt0rted/stylelint-problem-matcher#592
tagliala added a commit to diowa/ruby3-rails7-bootstrap-heroku that referenced this issue Oct 13, 2024
This formatter has been deprecated, but the suggested alternative does
not work and seems unmaintained

Ref:
- xt0rted/stylelint-actions-formatters#187
- xt0rted/stylelint-problem-matcher#461
- xt0rted/stylelint-problem-matcher#592
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants