awakesecurity / proto3-suite

Haskell Protobuf Implementation
https://hackage.haskell.org/package/proto3-suite
Other
81 stars 56 forks source link

Tests fail to compile when enableSwagger is false #207

Open j6carey opened 2 years ago

j6carey commented 2 years ago

To reproduce:

$ nix-build -A proto3-suite --arg enableSwagger false
...
tests/TestCodeGen.hs:18:1: error:
    Could not find module ‘Data.Swagger’
    Perhaps you meant
      Data.Tagged (needs flag -package-key tagged-0.8.6.1)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
18 | import           Data.Swagger                   (ToSchema)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/TestCodeGen.hs:19:1: error:
    Could not find module ‘Data.Swagger’
    Perhaps you meant
      Data.Tagged (needs flag -package-key tagged-0.8.6.1)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
19 | import qualified Data.Swagger
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^