-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
Support private Hex packages #3655
Comments
We want this for sure. Could you expand on your need for them? It'll help me prioritise this work. |
Thanks for considering this! The main need for private packages is to allow individuals and organizations to work with internal/proprietary code and libraries that they want to keep private. This feature would enable us to host libraries and code on Hex.pm without making them part of the public registry. This, of course, would enhance Gleam's appeal to business and enterprise. Presently, it appears the only way to handle private packages is to use local packages, or self-host hex. Neither are very convenient for a variety or reasons. I have not dug too deeply yet, but it appears we might be able to leverage the work @NthTensor previously did with local packages (and the beginning of git packages). We might be able to add Use the organization when publishing to hex: # head of gleam.toml
name = "foo"
organization = "bar" Use the organization when fetching from hex: # deps from gleam.toml
[dependencies]
fooey = { version = ">= 1.0.0 and < 2.0.0", organization = "bar" } Users would still be required to also set the appropriate environment variables for Thoughts? 🤔 |
That all sounds very reasonable! Are you using Gleam in your business and is this a blocker for your work? Thank you. |
Yes, we're an early stage startup, so we're just one small data point, but yes, it is currently a bit of a blocker for us. We're exploring work arounds, such as leveraging local packages, but supporting private packages on Hex would be the most ideal option. |
Great, thank you. Let's try and get this done soon @gleam-lang/compiler-team. I'm going to be short on time until after CodeBEAM but hopefully we can get it in for the next release. |
Hello! Same for me: I'm at Goto this week and at Code BEAM the next but I can try and tackle this in between the two, or after Berlin! :) |
I've reached out to Eric to see if we can get a free account to implement this with. If not we'll have to buy some accounts for a month or two. |
You guys are awesome 💯 If Hex won't provide free accounts to develop with, please let me know and I'll see what we can do to help. |
They're sorting it out for us :) |
It would be great if Gleam supported publishing and fetching private packages from Hex.pm - https://hex.pm/docs/private
The text was updated successfully, but these errors were encountered: