apjanke / octave-packajoozle

A just-for-fun reworking of GNU Octave's `pkg` tool
GNU General Public License v3.0
4 stars 1 forks source link

Install from repo URL #49

Open apjanke opened 5 years ago

apjanke commented 5 years ago

Would be nice to be able to install from the URL of an arbitrary repo, in addition to a URL pointing to a distribution file.

siko1056 commented 4 years ago

May be related. pkj cannot install from URLs pointing to a distribution tarball, like for pythonic:

pkg install https://gitlab.com/mtmiller/octave-pythonic/-/archive/v0.0.1/octave-pythonic-v0.0.1.tar.gz
apjanke commented 4 years ago

That's not good. That ought to be working. I'll look in to it.

apjanke commented 4 years ago

Oh, yup. That's totally related. I haven't implemented installation from URLs at all yet. Hold on...

apjanke commented 4 years ago

Okay, I added support for installing from tarball URLs, like you're trying to do, in https://github.com/apjanke/octave-packajoozle/commit/680baac2c7de810fbcecf9f8beb6bc7162e70f9e. Give it a try.

Note that this is only a basic implementation: it will install the package from the tarball URL you give it, but it won't follow and install the dependencies declared in that package tarball's DESCRIPTION file.

siko1056 commented 4 years ago

Thank you for the improvement. This is totally satisfactorily for me. It was a nice addition to pkg and now pkj does no longer rank behind.

apjanke commented 4 years ago

Excellent! If you've got more feature requests or see things wrong, please drop more issues here.

I'm leaving this issue open because the original report was about wanting to be able to install from URLs that point to Git repos themselves (like on GitHub or GitLab) in addition to URLs that point to distribution tarballs; I had just overlooked that tarball URLs weren't working in the first place.