Git Product home page Git Product logo

Comments (7)

yemouu avatar yemouu commented on August 21, 2024 1

Sorry for the late response, I've just updated the ebuild so it should compile just fine now

from moulay.

univerz avatar univerz commented on August 21, 2024

thank you :). one problem remains:

fatal: unable to access 'https://github.com/omertuc/tree-sitter-go-work/': Could not resolve host: github.com

after quick googling it looks like it's not possible to download sources at this stage. not sure how to hack around it.

from moulay.

yemouu avatar yemouu commented on August 21, 2024

I'm not sure what the issue is, i've cleared my distfiles and was able to compile both 22.03 and 9999.
I don't see anywhere in the ebuild where that link would be getting accessed, have you updated the repo?

from moulay.

univerz avatar univerz commented on August 21, 2024

I don't see anywhere in the ebuild where that link would be getting accessed, have you updated the repo?

it's called from helix-term/build.rs - fetch_grammars() == building tree-sitter grammars.

network should not be accessible outside of src_unpack stage according to this.

but if it works for you, i will try again after full emerge world, my gentoo is slightly out of date.

from moulay.

yemouu avatar yemouu commented on August 21, 2024

looking at helix-term/build.rs, setting HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 as an environment variable should fix this.
ill add it to the ebuild shortly

im not sure why im not running into this

from moulay.

univerz avatar univerz commented on August 21, 2024

im not sure why im not running into this

maybe you have FEATURES="-network-sandbox" set globally?

looking at helix-term/build.rs, setting HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 as an environment variable should fix this. ill add it to the ebuild shortly

works, but without grammars step. it should be possible to reuse helix-loader/src/main.rs for download step & then patch helix-term to skip fetch_grammars, but as a quick hack this builds:

index 625526c..9de695a 100644
--- a/app-editors/helix/helix-9999.ebuild
+++ b/app-editors/helix/helix-9999.ebuild
@@ -10,6 +10,7 @@ inherit cargo
 
 DESCRIPTION="A post-modern modal text editor"
 HOMEPAGE="https://helix-editor.com/"
+RESTRICT=network-sandbox
 
 if [[ ${PV} == 9999 ]]
 then
@@ -32,7 +33,6 @@ LICENSE="MPL-2.0"
 SLOT="0"
 
 src_compile() {
-       export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1
        cargo_src_compile
 }

but i can't find that runtime directory on filesystem after install - there should be themes etc & user should link to it.

from moulay.

yemouu avatar yemouu commented on August 21, 2024

the grammars step can be done after install with hx -g fetch && hx -g build which is what i was intending the user to do.

as for the rest of the runtime dir stuff, i didn't realize it was necessary for other parts helix so i've included it in the ebuild install now as well as some post install instructions

from moulay.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.