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

app-editors/helix: Remove grammar USE flag #36660

Closed
wants to merge 1 commit into from

Conversation

vadorovsky
Copy link
Contributor

Fetching grammars is done with git, therefore doing that during the package build is not the best, because git rigtfully complains about "unsafe directories".

Instead of micromanaging grammar builds, notify the user how to do it after installation. The procedure is to run:

hx --grammar fetch
hx --grammar build

Please check all the boxes that apply:

  • I can submit this contribution in agreement with the Copyright Policy.
  • I have certified the above via adding a Signed-off-by line to every commit in the pull request.
  • This contribution has not been created with the assistance of Natural Language Processing artificial intelligence tools, in accordance with the AI policy.
  • I have run pkgcheck scan --commits --net to check for issues with my commits.

Please note that all boxes must be checked for the pull request to be merged.

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @vadorovsky
Areas affected: ebuilds
Packages affected: app-editors/helix

app-editors/helix: @chutz, @freijon, @gentoo/proxy-maint

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels May 13, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-05-13 10:30 UTC
Newest commit scanned: a3281d0
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/eae71b88e4/output.html

Copy link
Member

@juippis juippis left a comment

Choose a reason for hiding this comment

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

Hmm, it doesn't look good:

 * QA Notice: Symbolic link /usr/share/helix/runtime/grammars/sources/qmljs/queries/highlights-javascript.scm points to /usr/share/helix/runtime/grammars/sources/qmljs/node_modules/tree-sitter-javascript/queries/highlights.scm which does not exist.
>>> /usr/share/helix/runtime/grammars/sources/qmljs/queries/highlights-javascript.scm -> ../node_modules/tree-sitter-javascript/queries/highlights.scm
 * QA Notice: Symbolic link /usr/share/helix/runtime/grammars/sources/qmljs/queries/highlights-typescript.scm points to /usr/share/helix/runtime/grammars/sources/qmljs/node_modules/tree-sitter-typescript/queries/highlights.scm which does not exist.
>>> /usr/share/helix/runtime/grammars/sources/qmljs/queries/highlights-typescript.scm -> ../node_modules/tree-sitter-typescript/queries/highlights.scm
 * QA Notice: Symbolic link /usr/share/helix/runtime/grammars/sources/janet-simple/bin/tree-sitter points to /usr/share/helix/runtime/grammars/sources/janet-simple/tree-sitter/target/release/tree-sitter which does not exist.
>>> /usr/share/helix/runtime/grammars/sources/janet-simple/bin/tree-sitter -> ../tree-sitter/target/release/tree-sitter
 * QA Notice: Symbolic link /usr/share/helix/runtime/grammars/sources/twig/node_modules/.bin/tree-sitter points to /usr/share/helix/runtime/grammars/sources/twig/node_modules/tree-sitter-cli/cli.js which does not exist.
>>> /usr/share/helix/runtime/grammars/sources/twig/node_modules/.bin/tree-sitter -> ../tree-sitter-cli/cli.js

I wonder if the grammars directory should just be deleted and not intalled, if it's attained by the user instead?

@vadorovsky
Copy link
Contributor Author

I wonder if the grammars directory should just be deleted and not intalled, if it's attained by the user instead?

Probably. Let me try that.

@vadorovsky
Copy link
Contributor Author

@juippis Sorry for late follow up. The error should be gone now, I fixed it by explicitly specifying stuff from runtime/ we want to install (for now - everything except grammar)

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-05-23 07:50 UTC
Newest commit scanned: 2f475ba
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0a38269df2/output.html

Fetching grammars is done with git, therefore doing that during the
package build is not the best, because git rigtfully complains about
"unsafe directories".

Instead of micromanaging grammar builds, notify the user how to do it
after installation. The procedure is to run:

```
hx --grammar fetch
hx --grammar build
```

Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-05-23 09:15 UTC
Newest commit scanned: 6ecae1c
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/e18d7bcd22/output.html

Copy link
Member

@juippis juippis left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits.
Projects
None yet
4 participants