You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm putting the issue here because I'm assuming the issue is something to do with the way Stack invokes hpack.
Steps to reproduce
stack new foo
cd foo
rm foo.cabal
(Optional) Add verbatim: { cabal-version: 2.2 } to the top of package.yaml (
Add verbatim: { import: foo } to the library stanza in package.yaml
stack build
foo.cabal has import: foo at bottom of library stanza (which is incorrect)
stack build
foo.cabal has import: foo at top of library stanza (correct)
Expected
Should have import: foo at the top of the stanza (sol/hpack#490)
Actual
Had it at the bottom the first time, then corrected the second time.
For some reason, stack path generates the cabal file twice, so running stack path once will generate the incorrect version, then the correct version immediately after
Stack version
stack --version
Version 2.9.1, Git revision 409d56031b4240221d656db09b2ba476fe6bb5b1 x86_64 hpack-0.35.0
Method of installation
Official binary, downloaded via haskellstack.org or from Stack's repository
Via GHCup
Via Cabal (the tool)
An unofficial package repository (please specify which)
Other (please specify)
The text was updated successfully, but these errors were encountered:
General summary/comments (optional)
I'm putting the issue here because I'm assuming the issue is something to do with the way Stack invokes hpack.
Steps to reproduce
stack new foo
cd foo
rm foo.cabal
verbatim: { cabal-version: 2.2 }
to the top ofpackage.yaml
(verbatim: { import: foo }
to the library stanza inpackage.yaml
stack build
foo.cabal
hasimport: foo
at bottom of library stanza (which is incorrect)stack build
foo.cabal
hasimport: foo
at top of library stanza (correct)Expected
Should have
import: foo
at the top of the stanza (sol/hpack#490)Actual
Had it at the bottom the first time, then corrected the second time.
For some reason,
stack path
generates the cabal file twice, so runningstack path
once will generate the incorrect version, then the correct version immediately afterStack version
Method of installation
The text was updated successfully, but these errors were encountered: