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

Add a command to just create a config file #2553

Closed
snoyberg opened this Issue Apr 24, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@snoyberg
Copy link
Collaborator

snoyberg commented Apr 24, 2015

I've seen people ask questions in the past about how to create a ~/.cabal/config file. The answer is typically "run cabal update", but in some circumstances, that's not the optimal action (e.g., when you're going to change immediately to a different remote-repo). What about adding a command (strawman: cabal init-config) that only creates the ~/.cabal/config file, and only when missing? (Optional: I suppose it could take a flag to force it to overwrite an existing file, but I have no need of such a feature.)

@ttuegel ttuegel added this to the cabal-install-1.24 milestone Apr 24, 2015

@ttuegel ttuegel added the meta: easy label Apr 24, 2015

@yogsototh

This comment has been minimized.

Copy link

yogsototh commented May 24, 2015

In my script I do a "cabal info" which only create a ~/.cabal/config file. I modify it ASAP to use Haskell LTS. On the other hand I would I found nice to have a command to pass some basic init flags, like changing the remote-repo or having profiling activated by default.

@23Skidoo

This comment has been minimized.

Copy link
Member

23Skidoo commented Feb 19, 2016

This has been fixed by #3095, by the way.

@23Skidoo 23Skidoo closed this Feb 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment