Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 02 07:12
    kevinresol commented #168
  • Nov 02 06:45
    back2dos commented #168
  • Oct 29 04:57
    kevinresol opened #168
  • Oct 08 12:09
    back2dos commented #167
  • Oct 06 21:10
    sebthom opened #167
  • Sep 28 17:07
    gene-pavlovsky opened #166
  • Sep 14 20:21
    MasterEric opened #72
  • Sep 11 14:00

    kevinresol on master

    Quote download location to work… Merge pull request #165 from se… (compare)

  • Sep 11 14:00
    kevinresol closed #165
  • Sep 11 14:00
    kevinresol closed #162
  • Sep 11 14:00
    kevinresol commented #165
  • Sep 11 13:59
    kevinresol commented #165
  • Sep 11 13:59
    kevinresol review_requested #165
  • Sep 02 10:51
    sebthom commented #165
  • Sep 02 10:51
    sebthom opened #165
  • Aug 31 17:02

    dependabot[bot] on npm_and_yarn

    (compare)

  • Aug 31 17:02
    dependabot[bot] closed #161
  • Aug 31 17:02
    dependabot[bot] commented #161
  • Aug 31 17:02
    dependabot[bot] labeled #164
  • Aug 31 17:02
    dependabot[bot] opened #164
Kevin Leung
@kevinresol
@back2dos is there a way to print out the path of the haxe folder/binary for current scope?
Kevin Leung
@kevinresol
ok I made this work finally lix run Kha html5
Juraj Kirchheim
@back2dos
\o/
Kevin Leung
@kevinresol
But I still need a easy way to get the path of the Haxe folder, preferably a variable usable in the @run directive
Because kha bundles it's own Haxe binary and I want to override it
Kevin Leung
@kevinresol
and need some way to customize the @run directive
Gabriel Hayes
@piboistudios
@kevinresol Sorry, Lix v is 15.9.1
But its a local install, I don't have a lix globally
Peter Achberger
@Antriel
If I would use postDownload hook to install some node modules into the library folder, is there some way to be able to require them when running node from the project folder?
Juraj Kirchheim
@back2dos
yes, but I wouldn't recommend that ... it's not really in line with how require works
instead, you should use postInstall to install the packages in the project folder
Peter Achberger
@Antriel
Yeah, I did end up deciding to do that. I really hate having node_modules in my Haxe projects, but I can live with that.
Just didn't yet manage to code it. :D The postInstall hook is not easy to test out, hehe.
6 replies
Just out of curiosity, how could I require them from the project cwd? I.e. how could I find out the haxelib directory?
9 replies
Peter Achberger
@Antriel
Hmm. Trying to use --gh-credentials, and it seems to work, as it finds the head commit hash, but doesn't download, just says "Not Found".
Peter Achberger
@Antriel
console.log debugging, it seems to add the credentials headers when looking up the git head, but it doesn't when trying to download the tar.
Kevin Leung
@kevinresol
I think gh-credentials is not preferred as it means that your credentials will be stored in the hxml thus tracked by version control
Peter Achberger
@Antriel
That's fine.
Kevin Leung
@kevinresol
That is not fine. This is the reason why the download url does not contain the credentials
I think it does include it some time in the past
Peter Achberger
@Antriel
I just need something simple that works. Don't wanna mess around with certs and keys and environment variables.
Kevin Leung
@kevinresol
but deliberately removed later
just use git+ssh
Peter Achberger
@Antriel
Especially not when the goal is to be able to do lix download on a different PC without having to setup anything.
Kevin Leung
@kevinresol
when you are using private repo you need to setup something
otherwise your private repo is leaked
Peter Achberger
@Antriel
And that's fine in my case, get access to one repo, can get access to others.
Lix doesn't support the git login thingy so the secret has to be in there somehow.
Kevin Leung
@kevinresol
I dunno. Maybe lix should support a flag telling it to write down the credentials in the hxml files
Peter Achberger
@Antriel
I'm gonna try that ssh/https way. Hopefully I figure it out. :D
Kevin Leung
@kevinresol
the idea of git+ssh is that your machine should be able to access all the private repo on is own
and on CI you really want a ssh key without passphrase
Peter Achberger
@Antriel
Yeah that makes sense.
Why without passphrase?
Kevin Leung
@kevinresol
otherwise the CI will prompt for a password
and you have basically no way to input it
Peter Achberger
@Antriel
Right.
I've never setup a CI so far, but something tells me I might need to in in a year or two.
Oh github has deploy keys, I wonder if that will work too.
Kevin Leung
@kevinresol
when you share your repo with some colleagues then you will realize you don't want your credentials tracked
Peter Achberger
@Antriel
Seems to be normal keys, just limited to read access to single repo.
Kevin Leung
@kevinresol
yes that will work
Peter Achberger
@Antriel
Yeah, for sure. I was thinking about that already. Don't need it yet, but probably a good idea to set it up now.
Peter Achberger
@Antriel
Hmm, using https it just asks for password, that's not horrible. But I couldn't get the ssh working. It says FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey).
I did add it to the local chain, and I could verify it via ssh -T git@github. Oh, wait...
I was using antriel@github, but seems like that wasn't it either. Still the same error.
Peter Achberger
@Antriel
SSH agent doesn't work from the old windows cmd. :sweat_smile:
Got that working, and I can verify on the cmd, but lix still throws the same error. Hmm.
Peter Achberger
@Antriel
Do I need to somehow configure local git or something? I'm not sure where that error comes from, but ssh -T git@github works, lix install git:git@github.com:Antriel/foo.git does not.
Kevin Leung
@kevinresol
not sure about windows, on mac/linux it is just about generating a key pair (~/.ssh/id_rsa and ~/.ssh/id_rsa.pub) and then upload the public key to github