Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this packages list annoying #1012

Closed
krux02 opened this issue Feb 19, 2019 · 10 comments
Closed

this packages list annoying #1012

krux02 opened this issue Feb 19, 2019 · 10 comments

Comments

@krux02
Copy link
Contributor

krux02 commented Feb 19, 2019

  • This list doesn't solve any problem.
  • Go lives a happy live without this list.
  • https://godoc.org/
  • waiting for CI to pass is annoying
  • waiting for someone to merge the PR maybe is annoying
  • dealing with broken CI is even more annoying (Add package fancygl #1011)

Possible Solution

Make this repository obsolete.

@zielmicha
Copy link
Contributor

Why do you need to wait for inclusion in this list to use the package? If you want to do it the Go way, just nimble install https://github.com/myuser/mypackage or even git clone https://github.com/myuser/myrepo; cd myrepo; nimble develop.

The list is useful, at least, as a way to prevent package name conflicts.

@dom96
Copy link
Contributor

dom96 commented Feb 21, 2019

* Go lives a happy live without this list.

Oh yeah? How does Go deal with package name conflicts?

@krux02
Copy link
Contributor Author

krux02 commented Feb 21, 2019

You can provide a custom name for imported modules. For example import m "lib/math" lets you use math.Sin under the now different name m.Sin.

https://golang.org/ref/spec#Import_declarations

@dom96
Copy link
Contributor

dom96 commented Feb 22, 2019

That's not what I meant... although I guess Golang allows git urls in imports so that's how it handles these conflicts.

@krux02
Copy link
Contributor Author

krux02 commented Feb 22, 2019

Then what exactly do you mean with "conflicts"? And technically no, go does not "allow git urls", the details are a bit different. But it certainly does allow github urls and custom package hosting services.

@haltcase
Copy link
Contributor

Ideally this list is a temporary thing until a legitimate registry is created. At that point I'd assume publishing would have a lot less friction, but I don't know what visions there are for that.

npm also began as a git repo, and while npm has a lot of serious faults its registry probably isn't one of them.

@dom96
Copy link
Contributor

dom96 commented Feb 24, 2019

And technically no, go does not "allow git urls", the details are a bit different. But it certainly does allow github urls and custom package hosting services.

Really? It explicitly only allows github? What if I host my package on Bitbucket/gitlab, am I screwed then?

Ideally this list is a temporary thing until a legitimate registry is created. At that point I'd assume publishing would have a lot less friction, but I don't know what visions there are for that.

Indeed. The vision is to develop a package directory, and that doesn't mean I or anyone in the core Nim team will do so, I encourage everyone to give it a go and I'm happy to integrate as many package directories as requested into Nimble.

@krux02
Copy link
Contributor Author

krux02 commented Feb 25, 2019

Really? It explicitly only allows github? What if I host my package on Bitbucket/gitlab, am I screwed then?

I never said it only allows github.

https://golang.org/cmd/go/#hdr-Remote_import_paths

@FedericoCeratto
Copy link
Member

See #777 (comment)

@theAkito
Copy link
Contributor

I don't find it annoying. It is easy and anyone can understand it, even the newest newbies.

waiting for CI to pass is annoying
waiting for someone to merge the PR maybe is annoying
dealing with broken CI is even more annoying (#1011)

Additionally, these points are maybe annoying if you really need the package published right now.
However, why would you need to do that? You can install your library locally with nimble install.
You can also do something like nimble install https://github.com/myuser/mypackage.

I think the points made in the aforementioned comment are much more convincing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants