Skip to content
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 only-locals feature to stack.yaml #5319

Open
codygman opened this issue Jun 18, 2020 · 0 comments
Open

Add only-locals feature to stack.yaml #5319

codygman opened this issue Jun 18, 2020 · 0 comments

Comments

@codygman
Copy link

codygman commented Jun 18, 2020

Motivation: Ensure stack ghci, stack build`, and only ever use local packages using a only-locals option in stack.yaml.

Right now stack build --only-locals works and was addressed in #5273.

I also need it to work with stack ghci sometimes.

So this config:

# stack.yaml
resolver: lts-15.12
install-ghc: true
only-locals: true
# ...

Would ensure that only built and saved snapshot dependencies are used for stack ghci as well. I guess it would mean that all stack functions would take that into account. Maybe that's a larger change than I realize given I'm not familiar with the stack codebase.

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

No branches or pull requests

2 participants