Crowdhailer

Crowdhailer

Creator of Raxx

raxx_kit is a generator for web-applications, using Ace and Raxx.


At the moment instructions for using raxx_kit include pulling the archive from github.

$ mix archive.install https://github.com/CrowdHailer/raxx_kit/raw/master/raxx_kit.ez

This works perfectly well but it has a few, minor, downsides such as a long url and the fact the project is not discoverable on hex.pm.

I was wondering if there was anyway to pull an archive from hex. It seams like it should be easy enough to implement.

For example mix.exs could specify the path to an archive within the project.

defmodule RaxxKit.MixProject do
  use Mix.Project

  def project do
    [
      app: :raxx_kit,
      archive: "./raxx_kit.ez"
      # etc
    ]
  end
end

And then mix archive.install raxx_kit could just look for the project on hex.

Thoughts, is this possible some other way or is there a good reason this would be a bad idea?

Showing Posts 1 to 8

NobbZ

NobbZ

According to mix help archive.install you can do mix archive.install hex $package $version where version is optional.

Crowdhailer

Crowdhailer OP

Creator of Raxx

Interesting. I was looking at the docs here mix archive.install — Mix v1.20.2

I probably looked too much at the code examples. I now see it says

If an argument is provided, it should be a local path or a URL to a prebuilt archive, a Git repository, a GitHub repository, or a Hex package.

To me this suggests I should add a url to a hex package.

Edit

Sorry I see it now.

Crowdhailer

Crowdhailer OP

Creator of Raxx

Ok. but I do have an issue. running the following will build the archive locally, correct?

mix archive.install hex raxx_kit

I need to build my archive with the --include-dot-files option. Is it possible for me to use the command above but have my project specify that the archive should be build with the option for dotfiles.

NobbZ

NobbZ

I can’t answer that, as I’ve not currently used an archive.install hex, phx_new and hex are the only archives I’ve installed. hex installs semi-automatically once needed and phx_new propagates installation via URL.

I just read from the documentation of the task.

But I do assume, that the hex archive is involved in the hex-install, so lets try to ask @ericmj.

ericmj

ericmj

Elixir Core Team

I think archive.install should take the same options that archive.build does or possibly that it should be possible to configure --include-dot-files in the project config so that the flag is not needed.

Crowdhailer

Crowdhailer OP

Creator of Raxx

Are you saying it should already or that it should be changed to address this?

NobbZ

NobbZ

In my opinion when I pull an archive from hex I do not want to remember to add any options or switches. I just want it to work out of the box, as it were when I use an URL to a prebuilt archive.

That’s the user point of view.

ericmj

ericmj

Elixir Core Team

I think it should be changed to address this.

Definitely. If you could configure --include-dot-files in the project config it would work out of the box.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews