Reputation: 6793
Is there any command-line switch to stack
that tells it to download all relevant packages without compiling/installing anything?
Upvotes: 1
Views: 210
Reputation: 9179
If you want to download sources of the package locally you can use stack unpack
command:
stack unpack typerep-map-0.3.0
The same can be done with cabal-install
as well but with cabal get
command:
cabal get typerep-map-0.3.0
Upvotes: 0
Reputation: 51109
I think you probably want a combination of the --prefetch
and --dry-run
flags. For example, the following command:
stack build --prefetch --dry-run acme-missiles
downloads the acme-missiles-0.3.tar.gz
source file without building it. If you later run stack build acme-missiles
, it should configure and build it from the previously downloaded source.
Upvotes: 5