JeyHey
On my job computer internet connectivity of PowerShell is blocked because of security reasons.
This means that I cannot fetch dependencies by executing mix deps.get. What I can do, is to fetch the dependency by downloading it directly from GitHub through the browser and copying it into the ‘deps’-folder in my mix project. The GitHub repository, however, does not include the hex_metadata.config and the .hex files. This means that I cannot compile my mix project as mix cannot check if I have the right version of the dependency.
So what I do is that I fetch the dependency on my private computer (where everything works) and then send the hex_metadata.config and .hex files to my job computer where I copy them into the folder of the dependency.
My question is: Is there a way of manually fetching the hex_metadata.config and .hex files of a dependency without going via the shell (so I can add dependencies without needing my private computer) ?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 5- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hauleth
Can you ask the SysOps/SecOps to provide proxy for you? It would allow you to install Hex packages without all that problems.
dimitarvp
Make a
Dockerfilethat replicates the environment of the wok machine (same CPU arch, no need for the same OS if you’re not compiling inside the container), fetch the packages there and just copy them out of the container on the work machine. That should work.cmo
You could try using the
gitmethod (withtagorrefoption) of defining a dependency or clone the repos and refer to them using thepathmethod inmix.exs.Silly question, but have you tried running it from the command prompt and not in powershell? And maybe specifying
mix.bat ...?aiko
Indeed, It is the security team’s task to keep (bad) stuff out, so if you want to let something in, you need to work with them to make this happen in a way that works for both teams. Trying to circumvent the in place security measures knowingly may get you into more trouble than it is worth.
“Trust me, I know what I am doing”
hauleth
That is what I am telling - work with them to allow access to Hex packages as a trusted source. You can run your own Hex instance that will contain all packages you need.