The specific question is:

Can stack be queried to display the location of the source folder (meaning,
where it is stored locally) for any given package in the current project's
build plan?

(And the unspecific question is whether this is a good idea.)

For example:

# stack.yaml
resolver: lts-12.0
packages:
- .
- location:
    git: ...
    commit: ...
  extra-dep: true
  subdirs:
  - bar

Can stack tell me where the `bar` package source has been downloaded to? (
Current answer would probably be ./.stack-work/downloads/$SOME_HASH/bar/,
discovering $SOME_HASH being the difficult part, esp. if stack has
downloaded multiple commits from this repo over time.)

If this cannot already be done with the existing CLI, perhaps it would be
worthwhile to open a feature request. It seems like the sort of capability
one might expect to find under `stack path`.

-- Dan Burton


On Sat, Oct 20, 2018 at 1:08 PM Michael Snoyman <[email protected]> wrote:

> I think this is too abstract a question to know how to answer it. What
> questions do you want to ask?
>
> Also, most of the usage of that directory will be changing drastically in
> the next release of Stack due to the introduction of pantry, which handles
> downloaded packages more efficiently.
>
> On 19 Oct 2018, at 18:51, [email protected] wrote:
>
> Hi,
>
> I'm wondering if it's a bad idea whether to ask stack for information
> about packages in .stack-work/downloaded/*. I would be asking stack about
> these packages after calling the build command. Is this possible using the
> stack package in Hackage, or using the command line tool? Are there any
> suggestions for this?
>
> Thanks,
> Dan Fithian
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haskell-stack/bbdd3ea4-a3f3-4d91-9fae-375c0e5c0f65%40googlegroups.com
> <https://groups.google.com/d/msgid/haskell-stack/bbdd3ea4-a3f3-4d91-9fae-375c0e5c0f65%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haskell-stack/D56D8F40-9750-4FD8-A379-9D727FB106B5%40snoyman.com
> <https://groups.google.com/d/msgid/haskell-stack/D56D8F40-9750-4FD8-A379-9D727FB106B5%40snoyman.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CALSygweDe75xNYP2AmxiMgVunGpoyg2nXbaf4uLPku%3DACMxgyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to