elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

Make things work with a corporate proxy #231

Open mmmdreg opened 8 years ago

mmmdreg commented 8 years ago

I work in a large corporate, where access to public package repos (for maven, npm etc) goes through internal private repos that proxy the public ones. Is it possible to configure elm-package similarly? It would help gain some traction in such restricted environments.

process-bot commented 8 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

jvoigtlaender commented 8 years ago

Some relevant earlier issues/discussions: https://github.com/elm-lang/elm-package/issues/168, https://github.com/elm-lang/elm-make/issues/59 (lots of related GitHub issues appearing as references there), https://github.com/elm-lang/elm-package/issues/162.

Also, maybe you could adapt https://github.com/gdotdesign/elm-github-install to your needs.

mmmdreg commented 8 years ago

Thanks.

The linked issues are interesting but this issue is more about changing the package repo (package.elm-Lang.org) rather than project repos.

elm-github-install looks like a good start though. I will take a look.

Thanks again.

jvoigtlaender commented 8 years ago

The linked issues are interesting but this issue is more about changing the package repo (package.elm-Lang.org) rather than project repos.

Note that the "package repo" package.elm-lang.org doesn't contain a single package. It only contains metadata and documentation of packages. Any package you install via elm-package is not downloaded from package.elm-lang.org, it's downloaded from GitHub (after elm-package has looked at package.elm-lang.org to find out what it needs to download from where on GitHub).

jvoigtlaender commented 8 years ago

Some more info on elm-github-install: https://groups.google.com/d/msg/elm-discuss/ZmD6vJex3bg/w379yzyuBAAJ