Giter Club home page Giter Club logo

Comments (6)

modjke avatar modjke commented on August 16, 2024 1

I think it would be better to raise the actual problems as issue on haxelib's Github

Well, i don't think that github hosted libs should be a part of a haxelib. lib.haxe.org should be a stable provider of high quality libs (we should encourage lib maintainers to activly update their libs). hxmlinstall is for a specific case where you left with either unsuported or bugged library or you just waiting for your pull request to be merged AND it's crucial for your project to use updated/fixed lib.

from hxmlinstall.

markknol avatar markknol commented on August 16, 2024 1

I tried, but you can use a specific commit, this lib pulls b662cdf of your library.

-lib mylib:git:https://github.com/modjke/hxmlinstall.git#b662cdf8dc60bc6e00654e3e8f3557dcb091b412

Also for pull request commits it also works. For example I have this one:
HaxeFoundation/hxnodejs#85
The commit is in my git repo branch is this one
https://github.com/markknol/hxnodejs/blob/7c4f9843dd0f6ad512906917d855c3a815f468ab/src/sys/FileSystem.hx
So in that case I can do

-lib mylib:git:https://github.com/markknol/hxnodejs.git#7c4f9843dd0f6ad512906917d855c3a815f468ab

So the current thing already works for crucial situations. The only thing is that it doesn't warn when out of date (I guess that's to prevent you from doing http requests on each compile, which requires you to be online)

I've added this to the manual to make it more visible. Anyway, case closed. 👍 Have a good day!

from hxmlinstall.

modjke avatar modjke commented on August 16, 2024

Oh boi... i'm lost for words now.
No, i was not aware of that.
Purpose of this was exactly it, set a github dependency / install it / updated references if needed.

from hxmlinstall.

modjke avatar modjke commented on August 16, 2024

Wait, what does exactly -lib awesomelib:git:https://github.com/user/repo.git#12345 do?
Will it automaticly checkout a lib from a specified origin and commit? No, i've tested it.
Will it warn you if you are building with outdated repository? No, i've tested it.
Every build my lib is checking if a local git lib is up to date with specified commit and warns you if it is not.
It's kinda similar to https://github.com/andywhite37/hmm but works without additional json and does not require a local haxelib repo.

from hxmlinstall.

markknol avatar markknol commented on August 16, 2024

Well you can use a branch or tag. Not sure if you can use a specific commit, never tried that. No doesn't warn if out of date, but in general if you work in team you want to lock to specific tag yourself I guess.
Atm automatic update isn't what haxelib does, you need to require one.
I now kind of understand what the library solves but I think it would be better to raise the actual problems as issue on haxelib's Github. Im glad I asked, please dont feel ashamed, just here trying to help. I think this -lib mylib:git:.. should be documented better.

from hxmlinstall.

modjke avatar modjke commented on August 16, 2024

Thanks, i will update my lib to support -lib:git:url format

from hxmlinstall.

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.