News for hackers. Stuff that matters.
Re:GitHub Package Registry Will Support Swift Packages by OberstKrueger on Monday June 03, 2019 @08:47PM (#20090667)
This will go well with Xcode 11 supporting Swift Package Manager natively.

https://developer.apple.com/xcode/

Re:GitHub Package Registry Will Support Swift Packages by Xavdidtheshadow on Monday June 03, 2019 @11:31PM (#20091584)
I imagine that's not a coincidence.
Re:GitHub Package Registry Will Support Swift Packages by rkachowski on Tuesday June 04, 2019 @08:01AM (#20094115)
It's pretty interesting that Cocoapods got so much flak years ago for basically exploiting Github's bandwidth to host a package registry for the apple ecosystem, and now Github are doing exactly the same as a first class product.
Re:GitHub Package Registry Will Support Swift Packages by Rockslide on Tuesday June 04, 2019 @08:40AM (#20094361)
Well part of the (if not THE) reason for that was that they were extremely inefficient in the whole process (complete clones of the master repository including the complete history, although you don't really need that as a cocoapods user).

And it is still inefficient today, considering that an initial pod install takes around 12 minutes just to clone the cocapods repo...

Re:GitHub Package Registry Will Support Swift Packages by jolux on Tuesday June 04, 2019 @09:18AM (#20094682)
They were actually using shallow clones which were more performance intensive for GitHub’s backend.
Re:GitHub Package Registry Will Support Swift Packages by jopsen on Tuesday June 04, 2019 @06:34AM (#20093651)
How immutable is this registry?

What happens if the owner tries to remove their package, or rename it? or modify it? What if the owner deletes his/her account / organization, or renames user / organization?

The nice thing about many package managers is that they don't allow mutation, removal or renaming of packages. So when you have a lock-file checked into git you can be sure you can fetch all the dependencies again.

Re:GitHub Package Registry Will Support Swift Packages by giancarlostoro on Tuesday June 04, 2019 @07:55AM (#20094081)
I dont think its intended to replace the main package managers as much as to ensure you can deliver a tool you may already be using (GitHub). Especially if you want to ensure you dont accidentally publish production code to one of those package managers e.g. NPM which had a whole debacle about that a few months or a year back.
Re:GitHub Package Registry Will Support Swift Packages by IloveHN84 on Tuesday June 04, 2019 @12:21AM (#20091857)
I hope they will introduce support for Conan/vcpkg C++ packages as well
Re:GitHub Package Registry Will Support Swift Packages by tr-gitlab on Tuesday June 04, 2019 @12:48PM (#20096790)
GitLab is working on support for Conan now. https://gitlab.com/gitlab-org/gitlab-ee/issues/8248
Re:GitHub Package Registry Will Support Swift Packages by frabert on Tuesday June 04, 2019 @02:58AM (#20092556)
You can just fork vcpkg's repository and have the same effect, though.
Re:GitHub Package Registry Will Support Swift Packages by bookofjoe on Tuesday June 04, 2019 @06:57AM (#20093759)
As a complete non-techie (anesthesiologist) I thought at first glance at the OP title this was a new rival of Amazon Prime.
Re:GitHub Package Registry Will Support Swift Packages by joeblau on Tuesday June 04, 2019 @07:38AM (#20093961)
Hehe. Packages are the developer term for a reusable piece of software that usually solves one problem.
Re:GitHub Package Registry Will Support Swift Packages by craigds on Tuesday June 04, 2019 @02:09AM (#20092353)
Is there any reason why Python isn't supported?
Re:GitHub Package Registry Will Support Swift Packages by natfriedman on Tuesday June 04, 2019 @03:34AM (#20092745)
Python is coming!
Re:GitHub Package Registry Will Support Swift Packages by skohan on Tuesday June 04, 2019 @09:28AM (#20094771)
How is the dependency management situation on Python? I have dabbled in Python for a few projects, and it always felt like there was no "right way" to manage dependencies and environment.
Re:GitHub Package Registry Will Support Swift Packages by dagw on Tuesday June 04, 2019 @09:39AM (#20094873)
it always felt like there was no "right way" to manage dependencies and environment.

That has been a huge problem in the past and it's still somewhat of a problem. However now that pip and virtualenv (renamed venv) are part of the standard python install and pip has gotten a lot better when comes to cross platform installs and handling binary dependencies, hopefully we'll see some more standardization around those tools.

That being said, I use conda for managing dependencies and environment for basically all my python development work and have no complaints.

Re:GitHub Package Registry Will Support Swift Packages by woodrowbarlow on Tuesday June 04, 2019 @11:00AM (#20095653)
these days all the tooling you need is shipped with the python standard distribution.

pip: install a package system-wide

venv: create fake system paths locally in your current directory

so do everything within a venv and pin your dependency versions into requirements.txt. i've found it to be exactly as powerful as i need, works out of the box, and it's easy.

Re:GitHub Package Registry Will Support Swift Packages by yhoiseth on Tuesday June 04, 2019 @10:40AM (#20095444)
I find Pipenv very nice, but it is controversial.
Re:GitHub Package Registry Will Support Swift Packages by pknopf on Tuesday June 04, 2019 @05:41AM (#20093408)
Deb/rpm please!
Re:GitHub Package Registry Will Support Swift Packages by postit on Tuesday June 04, 2019 @04:21AM (#20093021)
PPA please :)
Re:GitHub Package Registry Will Support Swift Packages by giancarlostoro on Tuesday June 04, 2019 @07:57AM (#20094093)
This also would be quite interesting. We are baked into another ppa provider as it is. Theres so many GitHub projects that have a ppa setup elsewhere.

If it lives in GH it may as well have a ppa (therefore a deb). I assume programming language packages will be first and later on system level packages if possible?

Re:GitHub Package Registry Will Support Swift Packages by actionowl on Tuesday June 04, 2019 @02:10AM (#20092358)
Cool, now how much longer do I have to wait to use it?
Re:GitHub Package Registry Will Support Swift Packages by saagarjha on Tuesday June 04, 2019 @10:43AM (#20095474)
There is a beta going on right now: you can sign up for you place in line.
Re:GitHub Package Registry Will Support Swift Packages by the_gipsy on Tuesday June 04, 2019 @03:02AM (#20092571)
Great, now you can mix Cocoapods, Carthage, SPM and github!
Re:GitHub Package Registry Will Support Swift Packages by jamil7 on Tuesday June 04, 2019 @03:29AM (#20092716)
Looks like it works with SPM unless I'm mistaken.
Re:GitHub Package Registry Will Support Swift Packages by greysteil on Tuesday June 04, 2019 @05:37AM (#20093394)
Yep - GitHub Package Registry is a set of registries. It should plan nice with as many package managers as possible
Re:GitHub Package Registry Will Support Swift Packages by the_gipsy on Tuesday June 04, 2019 @09:22AM (#20094709)
Oh... that's a great move in the right direction then.
[dead]
Re:GitHub Package Registry Will Support Swift Packages by smudgymcscmudge on Monday June 03, 2019 @11:42PM (#20091654)
Do you think ms is angling to “extinguish” Apple here?
Re:GitHub Package Registry Will Support Swift Packages by lugg on Monday June 03, 2019 @11:45PM (#20091668)
No.. package managers / GitHub is the play here.
Re:GitHub Package Registry Will Support Swift Packages by jbigelow76 on Tuesday June 04, 2019 @12:42AM (#20091951)
No.. package managers / GitHub is the play here.

So MS is attempting to extinguish GitHub, a property they own, now? Or is MS embracing blah blah blah the concept of package management?

Re:GitHub Package Registry Will Support Swift Packages by lugg on Tuesday June 04, 2019 @11:04AM (#20095691)
Why would anyone say this?

No.. they buy GitHub so they own pretty much most of open source software. Embrace.

Then they release a new package registry, one to rule them all, it supports all the things. Extend.

Extinguish, I don't know, that's why I asked the question, I don't know what the play here is.

Is it simply they now fully control distribution?

This doesn't sound like an issue until we're 10 years down the line and nobody creates package managers anymore. Nobody mirrors Linux, and everything has to go through GitHub.

Like I would think this is my own bias, and it certainly sounds tinfoil hattish to even me, but then I haven't forgotten those memos. Have you?

Re:GitHub Package Registry Will Support Swift Packages by giancarlostoro on Tuesday June 04, 2019 @09:15AM (#20094638)
Package managers have their own servers so I am pretty sure that wont be happening. As for GitHub I have a feeling Microsoft is burning money on GitHub without too much expected back outside of meeting their goals to empower devs.
Re:GitHub Package Registry Will Support Swift Packages by ngcc_hk on Tuesday June 04, 2019 @02:14AM (#20092378)
It need a better name. Gems, maven etc like. Sgpm could be a starting point.

Just can’t imagine anyone would remember without a good name.