-
Notifications
You must be signed in to change notification settings - Fork 846
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 path fails on first run #2325
Comments
No, IMO
I don't think there is one. |
BTW have you considered simply specifying the installation directory with |
Also I'm more doubtful now that @mgsloan: Thoughts on this? |
@sjakobi I would prefer not to use the |
There are indeed some portions of |
I've been bitten by this as well. I wanted to run 4 executables in parallel so I did |
I am closing this because I think it has been overtaken by the resolution of #6484. |
When running
stack path --local-install-root
, I didn't expect it to download anything or try to set up the build, but it did and failed.Steps to reproduce:
Expected:
Actual:
Discussion:
I'd like to use
stack path --local-install-root
in aMakefile
to determine a path like so:But (GNU)
make
runs the$(shell ...)
function on load so the above failure is happening even before running any targets in theMakefile
.Questions:
stack path
do the above things and fail?stack
?Workarounds:
I do run
stack setup
later in theMakefile
. I could possibly run it earlier thanstack path
; however, part of the reason for the existence of theMakefile
is to do thesetup
as well as to avoid it if I don't need it for a particular target. In order to do that, I need the path.I could, of course, define
$(INSTALL_DIR)
based on the known parts (.stack-work/install
,x86_64-linux
,lts-5.16
,7.10.3
), but this opens me up to breakage ifstack
ever changes to use a different path.The text was updated successfully, but these errors were encountered: