Questions tagged [hex-pm]

Hex is a package manager for the Erlang ecosystem.

Hex is a package manager for the Erlang ecosystem.

18 questions
7
votes
2 answers

How to remove elixir package on hex

I want to remove published elixir package on hex. I already know that I can only delete it up to one hour after creation with this command. mix hex.publish --revert VERSION But, Is there another way to delete package that is over one hour after…
Arkar Aung
  • 3,554
  • 1
  • 16
  • 25
6
votes
1 answer

Preventing a mix task being included when your project is included as a mix dep

An Elixir library I'm writing has two custom mix tasks, one intended to be used by users who have made my library a dependency of their project, one intended to be used only within my project. The problem here is that both mix tasks are available to…
lpil
  • 1,702
  • 1
  • 12
  • 22
5
votes
2 answers

mix deps.get fails, {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}

I'm trying to fetch dependencies for my elixir project. I can't tell if Hex is down or not (I was able to fetch just fine this morning). When I run $ mix deps.get I see this: Failed to fetch record for 'hexpm/phoenix_live_reload' from registry…
dopatraman
  • 13,416
  • 29
  • 90
  • 154
4
votes
1 answer

Is it possible to run a private Hex (Erlang) dependency manager (and if so how)?

I'm working in an Erlang environment. I'm looking to establish a dependency manager so that our build server can publish binaries for reuse instead of using source code dependencies. The Hexpm GitHub project implies that it is possible to run it…
JoshOfAllTrades
  • 523
  • 3
  • 13
3
votes
2 answers

hex dependencies not found for elixir project - poison, absinthe

I am getting unchecked dependency for environment error for ecto.create and ecto.migrate. I have below mix.exs file dependency entry defp deps do [{:phoenix, "~> 1.3"}, {:phoenix_pubsub, "~> 1.0"}, {:phoenix_ecto, "~> 3.3"}, …
Vinayak
  • 55
  • 4
2
votes
1 answer

How to add erlang source file to elixir package release to hex

I am using mix to build an Elixir library. This library includes an erlang module, in the src directory. When I require my library into a second project using a relative file path (i.e. I have the full source) it works correctly. I have just…
Peter Saxton
  • 4,466
  • 5
  • 33
  • 51
2
votes
2 answers

building the hex registry file offline

Adapting Elixir and all the tools in its ecosystem to work with a different build system. In this system, the packages and their dependencies are managed separately and Hex is made to work in offline mode. (grab the tarballs) It's working with one…
Mircea
  • 10,216
  • 2
  • 30
  • 46
1
vote
1 answer

Programmatically determine a dependency version in Elixir Mix Task

Is there a way to programmatically the current version of a installed dependency in a custom Mix task? I have a package that includes some custom Mix tasks that run some generator commands. I want to determine the version of Phoenix the user of my…
cpjolicoeur
  • 12,766
  • 7
  • 48
  • 59
1
vote
1 answer

Output results of `mix hex.docs offline` as EPUB instead of HTML

I keep offline copies of the documentation for Hex packages via mix hex.docs offline PACKAGE_NAME. This creates an HTML directory in ~/.hex/docs/hexpm/PACKAGE_NAME/. I would like to do the same thing, but with the output as EPUB instead of HTML, and…
Rick
  • 8,366
  • 8
  • 47
  • 76
1
vote
1 answer

Can I use different versions of a package for different environments?

I have a project where I need to use SQLite in a local environment but Postgres on a normal server. Unfortunately, there is no SQLite adapter for Ecto 3 yet, forcing me to keep the Ecto and some related packages at 2.x, which caused some problems…
xji
  • 7,341
  • 4
  • 40
  • 61
1
vote
1 answer

Cannot build RabbitMQ plugin because of missing dependencies

I would like to start working on my own RabbitMQ plugin, but I cannot build https://github.com/rabbitmq/rabbitmq-public-umbrella from source code on clean installation of Ubuntu 16.04. I have installed everything neccessary as described in…
1
vote
1 answer

Elixir dependency does not generate app file

I am about to release 0.2.0 of my myhtmlex library. But I am having trouble testing my new package release, as the test application does not generate an app file. And to test my integration, I wrote a script to test my hex releases in…
Overbryd
  • 4,612
  • 2
  • 33
  • 33
1
vote
3 answers

Mix task "release" not found error

I was setting up an Ubuntu 16.04 server for my Elixir/Phoenix application with edeliver when edeliver failed with the error message ** (Mix) The task "release" could not be found along with a exit code of 1. If I go to my build server, git pull my…
1
vote
1 answer

How to publish a package to hex with a dependency from github?

How do I publish a package to hex correctly that has a dependency from github and is required for the package to run?
camelCaseD
  • 2,483
  • 5
  • 29
  • 44
0
votes
1 answer

"module Hex.Crypto is not available" when publishing a package to Hex.pm

On attempting to run hex.publish to publish my package to Hex, I receive the following output and traceback: ~/Source/example_app main nix-shell ❯ MIX_ENV=docs mix hex.publish Building example_app 1.0.0 App: example_app Name: example_app …
Darian Moody
  • 3,565
  • 1
  • 22
  • 33
1
2