rlipscombe

rlipscombe

We’ve recently open-sourced some Erlang packages. At the moment, they’re just pushed to GitHub.

I’d like to publish them to hex.pm – if nothing else, to prevent someone squatting on the names.

What’s the best practice for setting up a hex.pm account for an organization? I’m thinking about allowing multiple people to publish new versions of the package, and – worst case – if I leave and have to hand over control of the packages.

Showing Posts 1 to 8

LostKobrakai

LostKobrakai

Organizations on hex are a paid feature for private packages. You can however add multiple owners or maintainers to a package without an organization: mix hex.owner — Hex v2.5.0 / rebar3_hex_owner — rebar3_hex v7.1.0

asianfilm

asianfilm

I host private packages on Hex as an organisation and it’s an excellent and reliable service that is fairly priced.

I wrote an energy calculation engine in Elixir, and having access to different hosted versions has made my working life much less stressful. I’m sure there are other ways to do it, with Git submodules etc, but I really like being able to develop the engine independently without breaking the other codebases that have it as a dependency.

PS: If I had one suggestion is that hex.publish recognise the non-American spelling of “organisation” such that one doesn’t accidentally publish a private package! (There is good feedback during the deploy such that you can check the version and visibility.)

dimitarvp

dimitarvp

Could you clarify on that? I didn’t get it.

asianfilm

asianfilm

Which part? I’m producing PDF reports in Typst in another Elixir application using the results of the energy calculation and they need to be versioned. Knowing which version of the energy calculation I’m depending on, makes that much more clear cut.

The energy calculation engine itself depends on another private module that models gas boilers and heat pumps, etc, from a public database that is updated every month. That also needs to be versioned, since the energy efficiency of a boiler may be updated.

If I need to produce legacy reports if, say, I have designed a new report format, I can depend on an earlier version of the calculation engine. Since advice will have been signed off by contractors, I do want to see what the advice was at a point in time.

Of course, one could also use event sourcing, but with private Hex repositories, I get the level of change granularity I need. I also have to account for different fuel prices over time and different upgrade measure recommendations with their pricing.

LostKobrakai

LostKobrakai

I didn’t say that hex orgs are unreasonably priced. I just said it’s a paid feature because for open source projects you usually don’t move ahead immediatelly aggregating recurring costs – to the contrary.

dimitarvp

dimitarvp

It was not clear to me how is using a private Hex repo helpful in using separate (older) versions in other projects, and still is not. Nothing that can’t be done with the free version I’d think.

Thanks for elaborating on the rest, interesting read actually.

Hermanverschooten

Hermanverschooten

I don’t think he means that, he talks about the code being private and that hex helps him with making it available and the versioning is a bonus.

ericmj

ericmj

Elixir Core Team

Hex organizations are free if you only use them for public packages, only when you need private packages is billing required.

If you have multiple packages organizations makes it easier to manage users and permissions since you can manage them for the whole organization and all its packages instead of each package individually.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews