File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ Other enhancements:
6565 i.e. ` stack build --keep-tmp-files --ghc-options=-keep-tmp-files ` .
6666 See [ #3857 ] ( https://github.com/commercialhaskell/stack/issues/3857 )
6767* Improved error messages for snapshot parse exceptions
68+ * ` stack unpack ` now supports a ` --to /target/directory ` option to
69+ specify where to unpack the package into
6870
6971Bug fixes:
7072
Original file line number Diff line number Diff line change @@ -517,6 +517,13 @@ Unpacked yackage-0.8.0 to /var/home/harendra/yackage-0.8.0/
517517cueball:~$ cd yackage-0.8.0/
518518` ` `
519519
520+ Note that you can also unpack to the directory of your liking instead of
521+ the current one by issueing :
522+
523+ ` ` `
524+ cueball:~$ stack unpack yackage-0.8.0 --to ~/work
525+ ` ` `
526+
520527# ## stack init
521528This new directory does not have a `stack.yaml` file, so we need to make one
522529first. We could do it by hand, but let's be lazy instead with the `stack init`
@@ -1715,7 +1722,8 @@ users. Here's a quick rundown:
17151722 upstream packages available).
17161723* `stack unpack` is a command we've already used quite a bit for examples, but
17171724 most users won't use it regularly. It does what you'd expect : downloads a
1718- tarball and unpacks it.
1725+ tarball and unpacks it. It accept optional `--to` argument to specify
1726+ the destination directory.
17191727* `stack sdist` generates an uploading tarball containing your package code
17201728* `stack upload` uploads an sdist to Hackage. As of
17211729 version [1.1.0](https://docs.haskellstack.org/en/v1.1.0/ChangeLog/) stack
You can’t perform that action at this time.
0 commit comments