Crowdhailer
Is there a way to pull archives from hex.pm
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?
Most Liked
ericmj
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.
ericmj
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.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










