haskell - Create hackage package that can be installed with stack -
when running stack sdist
in project directory, stack.yaml
file isn't included in tarball (this seems be expected).
consequently, when upload tarball hackage, stack install mypackage
complains missing dependencies (extra-deps
) specified in stack.yaml
file.
$ stack install pandoc-placetable run outside project, using implicit global project config using resolver: lts-5.17 implicit global project's config file: ~/.stack/global-project/stack.yaml while constructing buildplan following exceptions encountered: -- failure when adding dependencies: spreadsheet: needed (>=0.1.3 && <0.1.4), not present in build plan (latest applicable 0.1.3.4) needed package: pandoc-placetable-0.4 -- while attempting add dependency, not find package spreadsheet in known packages recommended action: try adding following extra-deps in /users/maurobieg/.stack/global-project/stack.yaml - spreadsheet-0.1.3.4
or what's recommended way make hackage package stack
-installable if has further hackage dependencies?
update: added extra-source-files: stack.yaml
cabal file , stack.yaml
indeed included in tarbal of newly published version. nevertheless, stack install pandoc-placetable-0.4.1
still comes same error.
i tell people don't want install cabal-install
on system clone github, build stack
. recommended approach tiny packages? or should ask them include dependency of pandoc-placetable
(i.e. spreadsheet
) in global stack.yaml
? smells polluting global file...
as mentioned @mgsloan in comments above: there's open stack issue using stack.yaml hackage package.
i guess until it's fixed i'll tell people clone github (or mentioned @michaelsnoyman stack unpack
) , cd
newly created directory , stack install
there.
Comments
Post a Comment