-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stack new" can't be pointed at an intranet site #2804
Comments
Off the top of my head: should that URL become configurable through the description in |
Yes, that would work. Or stack new could itself take a template location. Or it could be in the global stack.yaml file |
Hi there! Is this issue still relevant? If so, would any of the maintainers be interested in providing some mentorship/general help on resolving this so that the newcomers and first-time contributors would have an easier time? I would like to add this as one of the issues for the upcoming Haskell Weekly's Call for Participation section. See discussion in #75. These are the guidelines we'd like to stick to in the future:
Thank you! |
@alexeyzab, yes the issue is relevant. The core problem has much wider scope: stack cannot work offline. Personally, I've developed a script that downloads everything stack needs. Although in order to use the downloaded stuff, you still need manual operations. Some of them are required only once to configure the offline mirror and others every time you run "stack setup", "stack new", which becomes complicated for newcomers. |
@Blaisorblade I think I could work on this. Is it okay if I take this issue? |
I believe this has been fixed — see #4103 — so I'm closing. See GUIDE.md for the details. To use the new version, you'll need to Perhaps, @juanpaucar, you could test to confirm it has been fixed? And then we can find a new issue for which you can implement a feature! |
General summary/comments (optional)
"stack new" can't be pointed at an intranet site
Steps to reproduce
For example:
stack new foo
Expected
Some configuration option to get the templates from some intranet site
Actual
It ends up going to the url https://raw.githubusercontent.com/commercialhaskell/stack-templates/master/new-template.hsfiles which is not on the intranet site.
We've been able to control every other aspect of stack onto our intranet (via the
--stack-setup-yaml
argument, pointing at intranet stuff), but notstack new
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: