gleam-lang / packages

📦 Search for Gleam packages
https://packages.gleam.run/
Apache License 2.0
63 stars 12 forks source link

Can't use Hex Mirror/Proxy #36

Closed artman41 closed 2 months ago

artman41 commented 2 months ago

Hi,

I was looking for an option to use a Hex Mirror / Proxy but couldn't find one in the README.md.

Looking in the codebase, it seems that it's hardcoded such that it will always contact https://hex.pm - would it be possible to have this url configurable via the toml?

Trying to use gleam within an org is difficult due to how package fetching currently works 😄

Thanks

lpil commented 2 months ago

Hello! Are you looking to deploy your own instance of this web application? I would love to hear about your use case. Thanks!

artman41 commented 2 months ago

Hi @lpil, your response makes me less confident that I've commented on the right project 😆

it's specifically regarding pulling deps via the Gleam executable - reading the docs, I was led to believe that this project was what was used for that functionality but it could be that I'm wrong 😛

With the environment I'm working in, we can't access deps from an external source - instead, we have a security team download files for us which we upload to an internal Hex server.

Ideally, what I'm after is functionality within Gleam itself to specify the mirror to pull deps from 👍

Let me know if I've got the wrong project!

edit: doing another search, this time with the word 'mirror' rather than 'proxy', it does seem like an issue has already been raised for this exact issue - https://github.com/gleam-lang/gleam/issues/2817

I'll close this issue and post a comment over there - thanks for the response :) never would've realised I had the wrong project otherwise lol

lpil commented 2 months ago

Ah! Fab fab!